mirror of
https://github.com/denisidoro/navi
synced 2024-11-25 13:00:20 +00:00
36cd52f93d
- [x] Define OPTIONS as global in opts::eval - [x] Add script - [x] Minor changes
21 lines
602 B
Bash
Executable file
21 lines
602 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
debian="${1:-false}"
|
|
|
|
if $debian; then
|
|
docker run \
|
|
-it \
|
|
--entrypoint /bin/bash \
|
|
-v "$(pwd):/navi" \
|
|
debian \
|
|
-c 'apt update; apt install -y git curl; git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && yes | ~/.fzf/install; export PATH=$PATH:/navi; bash'
|
|
else
|
|
docker run \
|
|
-it \
|
|
--entrypoint /bin/bash \
|
|
-v "$(pwd):/navi" \
|
|
ellerbrock/alpine-bash-git \
|
|
-c 'git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && yes | ~/.fzf/install; export PATH=$PATH:/navi; bash'
|
|
fi
|
|
|