mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Conflicts: .gitignore lib/completion.zsh lib/git.zsh oh-my-zsh.sh
This commit is contained in:
commit
969553349f
23 changed files with 931 additions and 29 deletions
13
oh-my-zsh.sh
13
oh-my-zsh.sh
|
|
@ -28,7 +28,18 @@ for plugin ($plugins); do
|
|||
done
|
||||
|
||||
# Load the theme
|
||||
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
|
||||
# Check for updates on initial load...
|
||||
if [ "$ZSH_THEME" = "random" ]
|
||||
then
|
||||
themes=($ZSH/themes/*zsh-theme)
|
||||
N=${#themes[@]}
|
||||
((N=RANDOM%N))
|
||||
RANDOM_THEME=${themes[$N]}
|
||||
source "$RANDOM_THEME"
|
||||
echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
|
||||
else
|
||||
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
|
||||
fi
|
||||
|
||||
# Load all of your custom configurations from custom/
|
||||
for config_file ($ZSH/custom/*.zsh) source $config_file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue