Adds a bunch of fixes.
This commit is contained in:
5
.rc.d/zoxide.sh
Normal file → Executable file
5
.rc.d/zoxide.sh
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user