(bashrc/navigate) added checks and aliases for pushd/popd if navigate does not exist

This commit is contained in:
scbj
2025-06-23 11:00:24 +02:00
parent c0d7a2a449
commit 23124476c6
2 changed files with 10 additions and 0 deletions

View File

@@ -1,5 +1,10 @@
#!/usr/bin/env bash
if ! $(which navigate &>/dev/null); then
printf "\033[0;31mcould not find 'navigate' on path" >&2
return 1
fi
function __call_navigate {
arg_pid=" --pid $$ "
eval "$(navigate ${arg_pid} $@)"