config: set PATH only in login shell for fish

Reduce overhead for interactive shell.
This commit is contained in:
Hoang Nguyen 2024-02-15 00:00:00 +07:00
parent 7a5185cd57
commit db2efc5aac
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
1 changed files with 6 additions and 5 deletions

View File

@ -1,8 +1,9 @@
status is-login; and replay "source /etc/profile"
status is-login; and umask {{ umask }}
for path in $XDG_BIN_HOME $GOPATH/bin $CARGO_HOME/bin $PNPM_HOME/bin $KREW_ROOT/bin $XDG_DATA_HOME/luarocks/bin
test -d $path && set -ga fish_user_paths $path
if status is-login
replay "source /etc/profile"
umask {{ umask }}
for path in $XDG_BIN_HOME $GOPATH/bin $CARGO_HOME/bin $PNPM_HOME/bin $KREW_ROOT/bin $XDG_DATA_HOME/luarocks/bin
test -d $path; and set -ga fish_user_paths $path
end
end
# Starship prompt