mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 10:16:08 +00:00
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
|
|
|