etc(linux): Unset functions after use instead of before
This commit is contained in:
parent
eae9961a9e
commit
231edbf377
1 changed files with 4 additions and 4 deletions
|
|
@ -24,11 +24,11 @@ source_if "${HOME}/.nix-profile/etc/profile.d/nix.sh"
|
||||||
path_if "$HOME/bin"
|
path_if "$HOME/bin"
|
||||||
path_if "$HOME/.local/bin"
|
path_if "$HOME/.local/bin"
|
||||||
|
|
||||||
unset -f source_if
|
|
||||||
unset -f path_if
|
|
||||||
unset -f has
|
|
||||||
|
|
||||||
if has gnome-keyring-daemon; then
|
if has gnome-keyring-daemon; then
|
||||||
eval "$(gnome-keyring-daemon --start)"
|
eval "$(gnome-keyring-daemon --start)"
|
||||||
export SSH_AUTH_SOCK
|
export SSH_AUTH_SOCK
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
unset -f source_if
|
||||||
|
unset -f path_if
|
||||||
|
unset -f has
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue