mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Move my theming functions into lib/
This commit is contained in:
parent
9e17fe1fc1
commit
01d48a8749
2 changed files with 9 additions and 10 deletions
9
lib/theming.zsh
Normal file
9
lib/theming.zsh
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
set_theme() {
|
||||||
|
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
|
||||||
|
}
|
||||||
|
|
||||||
|
random_theme() {
|
||||||
|
local themes
|
||||||
|
themes=($ZSH/themes/*zsh-theme)
|
||||||
|
source "$themes[$RANDOM%$#themes+1]"
|
||||||
|
}
|
||||||
10
oh-my-zsh.sh
10
oh-my-zsh.sh
|
|
@ -39,13 +39,3 @@ done
|
||||||
|
|
||||||
# Load all of your custom configurations from custom/
|
# Load all of your custom configurations from custom/
|
||||||
for config_file ($ZSH_CUSTOM/*.zsh) source $config_file
|
for config_file ($ZSH_CUSTOM/*.zsh) source $config_file
|
||||||
|
|
||||||
set_theme() {
|
|
||||||
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
|
|
||||||
}
|
|
||||||
|
|
||||||
random_theme() {
|
|
||||||
local themes
|
|
||||||
themes=($ZSH/themes/*zsh-theme)
|
|
||||||
source "$themes[$RANDOM%$#themes+1]"
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue