diff options
Diffstat (limited to '.oh-my-zsh/plugins/themes')
-rw-r--r-- | .oh-my-zsh/plugins/themes/README.md | 18 | ||||
-rw-r--r-- | .oh-my-zsh/plugins/themes/_theme | 3 | ||||
-rw-r--r-- | .oh-my-zsh/plugins/themes/themes.plugin.zsh | 26 |
3 files changed, 0 insertions, 47 deletions
diff --git a/.oh-my-zsh/plugins/themes/README.md b/.oh-my-zsh/plugins/themes/README.md deleted file mode 100644 index 408e357..0000000 --- a/.oh-my-zsh/plugins/themes/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Themes Plugin - -This plugin allows you to change ZSH theme on the go. - -To use it, add `themes` to the plugins array in your zshrc file: - -``` -plugins=(... themes) -``` - -## Usage - -`theme <theme_name>` - Changes the ZSH theme to specified theme. - -`theme ` - Changes the ZSH theme to some random theme. - -`lstheme ` - Lists installed ZSH themes. - diff --git a/.oh-my-zsh/plugins/themes/_theme b/.oh-my-zsh/plugins/themes/_theme deleted file mode 100644 index 8214ddb..0000000 --- a/.oh-my-zsh/plugins/themes/_theme +++ /dev/null @@ -1,3 +0,0 @@ -#compdef theme - -_arguments "1: :($(lstheme | tr "\n" " "))" diff --git a/.oh-my-zsh/plugins/themes/themes.plugin.zsh b/.oh-my-zsh/plugins/themes/themes.plugin.zsh deleted file mode 100644 index 2cd0ee3..0000000 --- a/.oh-my-zsh/plugins/themes/themes.plugin.zsh +++ /dev/null @@ -1,26 +0,0 @@ -function theme -{ - if [ -z "$1" ] || [ "$1" = "random" ]; then - themes=($ZSH/themes/*zsh-theme) - N=${#themes[@]} - ((N=(RANDOM%N)+1)) - RANDOM_THEME=${themes[$N]} - source "$RANDOM_THEME" - echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..." - else - if [ -f "$ZSH_CUSTOM/themes/$1.zsh-theme" ] - then - source "$ZSH_CUSTOM/themes/$1.zsh-theme" - else - source "$ZSH/themes/$1.zsh-theme" - fi - fi -} - -function lstheme -{ - # Resources: - # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Modifiers - # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Glob-Qualifiers - print -l {$ZSH,$ZSH_CUSTOM}/themes/*.zsh-theme(N:t:r) -} |