diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-28 22:17:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-28 22:17:52 +0900 |
| commit | 1e553a94ff39990f6615c211d9516d688a577aeb (patch) | |
| tree | 2eeba0f1be5cc3aa98748aa4400d5952c9b320af /home-manager | |
| parent | bc4ef5870f383d8c23cd609a62b033d705f63b45 (diff) | |
| download | dotfiles-1e553a94ff39990f6615c211d9516d688a577aeb.tar.gz dotfiles-1e553a94ff39990f6615c211d9516d688a577aeb.tar.zst dotfiles-1e553a94ff39990f6615c211d9516d688a577aeb.zip | |
home-manager: fix $PATH on macOS
Diffstat (limited to 'home-manager')
| -rw-r--r-- | home-manager/config/fish/path.fish | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/home-manager/config/fish/path.fish b/home-manager/config/fish/path.fish index 0a08253..bd8bd81 100644 --- a/home-manager/config/fish/path.fish +++ b/home-manager/config/fish/path.fish @@ -1,3 +1,14 @@ fish_add_path $HOME/go/bin $HOME/.cargo/bin $HOME/.deno/bin $HOME/.local/bin $HOME/bin -# https://github.com/LnL7/nix-darwin/issues/122 -fish_add_path --move $HOME/.nix-profile/bin + +# For macOS +if test (uname) = "Darwin" + set -l nix_profile_dir /nix/var/nix/profiles/default + if test -f $nix_profile_dir/etc/profile.d/nix-daemon.fish + source $nix_profile_dir/etc/profile.d/nix-daemon.fish + end + if test -f $nix_profile_dir/share/fish/vendor_completions.d/nix.fish + source $nix_profile_dir/share/fish/vendor_completions.d/nix.fish + end + # https://github.com/LnL7/nix-darwin/issues/122 + fish_add_path --move $HOME/.nix-profile/bin +end |
