mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merge remote-tracking branch 'origin/theming'
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
This commit is contained in:
commit
f838ca5e1f
4 changed files with 45 additions and 19 deletions
11
lib/theming.zsh
Normal file
11
lib/theming.zsh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue