Adds a bunch of fixes.

This commit is contained in:
Tom Hicks
2024-09-20 18:03:26 -07:00
parent 51fa32de5d
commit 26d72aa686
12 changed files with 24 additions and 5 deletions

5
.rc.d/zoxide.sh Normal file → Executable file
View File

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