mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 16:10:45 +01:00
fix(fish): use set -p PATH instead of fish_add_path
The reasoning for this is that `fish_add_path` writes to a universal variable that is persisted independently of fish configuration files, and this can result in stale `fish_user_paths` entries when calls to `fish_add_path` are removed from the configuration. Using `set -p PATH` ensures that only the environment is written to.
This commit is contained in:
parent
eb4cb1c367
commit
da2644ae42
5 changed files with 23 additions and 25 deletions
|
|
@ -8,9 +8,9 @@ set -x SSH_AUTH_SOCK "$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/
|
|||
fnm env --use-on-cd | source
|
||||
|
||||
# cargo
|
||||
fish_add_path "$HOME/.cargo/bin"
|
||||
set -p PATH "$HOME/.cargo/bin"
|
||||
# deno
|
||||
fish_add_path "$HOME/.deno/bin"
|
||||
set -p PATH "$HOME/.deno/bin"
|
||||
|
||||
# pnpm
|
||||
set -x PNPM_HOME "$HOME/Library/pnpm"
|
||||
|
|
@ -19,9 +19,9 @@ set -x PNPM_HOME "$HOME/Library/pnpm"
|
|||
set -x DIRENV_LOG_FORMAT ""
|
||||
|
||||
# docker
|
||||
fish_add_path "$HOME/.docker/bin"
|
||||
set -p PATH "$HOME/.docker/bin"
|
||||
# local bin
|
||||
fish_add_path "$HOME/.local/bin"
|
||||
set -p PATH "$HOME/.local/bin"
|
||||
|
||||
# fish
|
||||
set fish_greeting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue