mirror of
https://github.com/denisidoro/navi
synced 2024-11-25 21:10:21 +00:00
c4e9c7a90a
Use dictionaries + more
13 lines
No EOL
231 B
Bash
Executable file
13 lines
No EOL
231 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" '"$@"'
|
|
}
|
|
|
|
BIN="/usr/local/bin/navi"
|
|
script > "$BIN"
|
|
chmod +x "$BIN" |