mirror of
https://github.com/denisidoro/navi
synced 2024-11-29 06:50:32 +00:00
65154663db
Fixes #312 This isn't idiomatic but it'll do for the time being
15 lines
491 B
Bash
Executable file
15 lines
491 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
cd "$NAVI_HOME"
|
|
|
|
./scripts/action release x86_64-unknown-linux-musl
|
|
|
|
docker run \
|
|
-e HOMEBREW_NO_AUTO_UPDATE=1 \
|
|
-e HOMEBREW_NO_INSTALL_CLEANUP=1 \
|
|
-v "$(pwd):/navi" \
|
|
-it 'bashell/alpine-bash' \
|
|
bash -c 'apk add git; apk add curl; git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && yes | ln -s /navi/target/debug/navi /usr/local/bin/navi; source $HOME/.bashrc; bash'
|