config: set PATH only in login shell for fish
Reduce overhead for interactive shell.
This commit is contained in:
parent
7a5185cd57
commit
db2efc5aac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue