mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merging in the refactored theming since we no longer rely on ZSH_THEME variable anymore Conflicts: oh-my-zsh.zsh templates/zshrc.arch-zsh-template templates/zshrc.zsh-template
11 lines
201 B
Bash
11 lines
201 B
Bash
set_theme() {
|
|
source "$ZSH/themes/$1.zsh-theme"
|
|
}
|
|
|
|
random_theme() {
|
|
local themes
|
|
themes=($ZSH/themes/*zsh-theme)
|
|
source "$themes[$RANDOM%$#themes+1]"
|
|
}
|
|
|
|
# compdef "_files -g '*.zsh'" set_theme
|