mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 10:16:08 +00:00
Minor refactor (#57)
- [x] Define OPTIONS as global in opts::eval - [x] Add script - [x] Minor changes
This commit is contained in:
parent
2ee253a56e
commit
36cd52f93d
13 changed files with 187 additions and 37 deletions
21
scripts/docker
Executable file
21
scripts/docker
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue