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
15 lines
No EOL
257 B
Bash
Executable file
15 lines
No EOL
257 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
script() {
|
|
echo "#!/usr/bin/env bash"
|
|
echo "${SCRIPT_DIR}/navi" '"$@"'
|
|
}
|
|
|
|
folder="${1:-/usr/local/bin}"
|
|
bin="${folder}/navi"
|
|
|
|
script > "$bin"
|
|
chmod +x "$bin" |