Adds zoxide script.

This commit is contained in:
Tom Hicks
2024-09-20 17:24:30 -07:00
parent beb67b97ba
commit d9ff0767ec

10
.rc.d/zoxide.sh Normal file
View File

@@ -0,0 +1,10 @@
# TODO: Check if zoxide_path exists.
# TODO: Check shell better.
function {
zoxide_path=$(which zoxide)
if [ -n $zoxide_path -a ( $zoxide_path != "zoxide not found" ) ];
if [ "$SHELL" = "/bin/zsh"]; then
eval "$(zoxide init --cmd cd zsh)"
fi
fi
}