From 5324460bd4f0cb61ce859d4b4f9e309f07ced0c1 Mon Sep 17 00:00:00 2001 From: kagura Date: Mon, 25 Nov 2024 10:57:52 +0800 Subject: [PATCH] Fix: use -d to check is a dir --- home.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.nix b/home.nix index 8403db8..661fd5f 100644 --- a/home.nix +++ b/home.nix @@ -164,7 +164,7 @@ in [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh [[ ! -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 ''; }; }