mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Add zsh-theme command (with completetion) to switch between themes.
This commit is contained in:
parent
90893ca281
commit
6774669bcd
1 changed files with 9 additions and 0 deletions
|
|
@ -50,3 +50,12 @@ function extract() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zsh-theme(){
|
||||||
|
echo $ZSH/themes/$1
|
||||||
|
source $ZSH/themes/$1
|
||||||
|
typeset -ga chpwd_functions
|
||||||
|
typeset -ga precmd_functions
|
||||||
|
precmd_functions=''
|
||||||
|
chpwd_functions=''
|
||||||
|
}
|
||||||
|
compctl -k "(`\ls $ZSH/themes`)" zsh-theme
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue