Fix: use -d to check is a dir

This commit is contained in:
kagura 2024-11-25 10:57:52 +08:00
parent 3f4e534592
commit 5324460bd4

View file

@ -164,7 +164,7 @@ in
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
[[ ! -f ~/.scripts/github.sh ]] || source ~/.scripts/github.sh [[ ! -f ~/.scripts/github.sh ]] || source ~/.scripts/github.sh
[[ ! -f ~/.cargo/bin ]] || export PATH=`realpath ~`/.cargo/bin:$PATH [[ ! -d ~/.cargo/bin ]] || export PATH=`realpath ~`/.cargo/bin:$PATH
''; '';
}; };
} }