mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Try again. This works.
This commit is contained in:
parent
cf5be77c2e
commit
15892d6e76
1 changed files with 5 additions and 6 deletions
|
|
@ -1,14 +1,13 @@
|
|||
set_theme() {
|
||||
local theme
|
||||
|
||||
theme=({$OMZ,$ZSH}/themes/$1-theme(N))
|
||||
source $theme[1]
|
||||
local themes
|
||||
themes=({$OMZ,$ZSH}/themes/$1.zsh-theme(N))
|
||||
source $themes[1]
|
||||
}
|
||||
|
||||
random_theme() {
|
||||
local themes
|
||||
themes=($ZSH/themes/*zsh-theme(N))
|
||||
source "$themes[$RANDOM%$#themes+1]"
|
||||
themes=({$OMZ,$ZSH}/themes/*.zsh-theme(N))
|
||||
source $themes[$RANDOM%$#themes+1]
|
||||
}
|
||||
|
||||
# compdef "_files -g '*.zsh'" set_theme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue