Minor refactor (#57)

- [x] Define OPTIONS as global in opts::eval
- [x] Add script
- [x] Minor changes
This commit is contained in:
Denis Isidoro 2019-09-24 16:13:57 -03:00 committed by GitHub
parent 2ee253a56e
commit 36cd52f93d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 187 additions and 37 deletions

21
scripts/docker Executable file
View file

@ -0,0 +1,21 @@
#!/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