From 55c2d8e73db4e9e93cddcb981c15fb8fe9b1dcf4 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 15 Nov 2023 00:47:36 +0800 Subject: Remove z.sh and try zoxide and fish --- .zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 3f523a5..378d28f 100644 --- a/.zshrc +++ b/.zshrc @@ -22,12 +22,13 @@ source $HOME/.path source $HOME/.env source $HOME/.aliases source $HOME/.functions -[ -r "$HOME/.zrc" ] && source "$HOME/.zrc" [ -r $HOME/.zplugrc ] && source $HOME/.zplugrc [ -r $HOME/.nnnrc ] && source $HOME/.nnnrc [ -r $HOME/.fzfrc ] && source $HOME/.fzfrc +command -v zoxide > /dev/null && eval "$(zoxide init --cmd j zsh)" + if command -v direnv &> /dev/null; then eval "$(direnv hook zsh)" fi @@ -38,3 +39,7 @@ fi [[ $(uname) == Darwin ]] && [ -r $HOME/.macos ] && source $HOME/.macos [ -r $HOME/.zsh_local ] && source $HOME/.zsh_local + +if command -v fish > /dev/null; then + exec fish +fi -- cgit v1.2.3