mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Load themes from ~/.omz/themes/ too
This commit is contained in:
parent
6363c6cbf0
commit
cf5be77c2e
1 changed files with 5 additions and 2 deletions
|
|
@ -1,10 +1,13 @@
|
||||||
set_theme() {
|
set_theme() {
|
||||||
source "$ZSH/themes/$1.zsh-theme"
|
local theme
|
||||||
|
|
||||||
|
theme=({$OMZ,$ZSH}/themes/$1-theme(N))
|
||||||
|
source $theme[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
random_theme() {
|
random_theme() {
|
||||||
local themes
|
local themes
|
||||||
themes=($ZSH/themes/*zsh-theme)
|
themes=($ZSH/themes/*zsh-theme(N))
|
||||||
source "$themes[$RANDOM%$#themes+1]"
|
source "$themes[$RANDOM%$#themes+1]"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue