mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
unset local variables at end of startup
This commit is contained in:
parent
789a36f96f
commit
f6bd937543
1 changed files with 7 additions and 0 deletions
|
|
@ -42,7 +42,14 @@ then
|
|||
RANDOM_THEME=${themes[$N]}
|
||||
source "$RANDOM_THEME"
|
||||
echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
|
||||
unset themes
|
||||
unset N
|
||||
unset RANDOM_THEME
|
||||
else
|
||||
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
|
||||
fi
|
||||
|
||||
# remove locally used variables
|
||||
unset config_file
|
||||
unset plugin
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue