diff options
author | Luiz Guilherme Fonseca Rosa <luizguilhermefr@gmail.com> | 2018-10-08 10:20:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 10:20:10 -0300 |
commit | ed401bc55af2e5b08d1ff903111a65838473ad9d (patch) | |
tree | 621f7623dedf79dd9117a20e84c0997eac8217e3 /plugins/themes | |
parent | c2113d7cc67e2865a4692918198fba27e8360fe5 (diff) | |
parent | 7b29684a3087c881f240ebb74bd387c69f0ffcc6 (diff) | |
download | zsh-ed401bc55af2e5b08d1ff903111a65838473ad9d.tar.gz zsh-ed401bc55af2e5b08d1ff903111a65838473ad9d.tar.bz2 zsh-ed401bc55af2e5b08d1ff903111a65838473ad9d.zip |
Merge branch 'master' into master
Diffstat (limited to 'plugins/themes')
-rw-r--r-- | plugins/themes/README.md | 18 | ||||
-rw-r--r-- | plugins/themes/themes.plugin.zsh | 4 |
2 files changed, 20 insertions, 2 deletions
diff --git a/plugins/themes/README.md b/plugins/themes/README.md new file mode 100644 index 000000000..408e357e0 --- /dev/null +++ b/plugins/themes/README.md @@ -0,0 +1,18 @@ +# 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/plugins/themes/themes.plugin.zsh b/plugins/themes/themes.plugin.zsh index 7519b0253..487e85689 100644 --- a/plugins/themes/themes.plugin.zsh +++ b/plugins/themes/themes.plugin.zsh @@ -8,9 +8,9 @@ function theme source "$RANDOM_THEME" echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..." else - if [ -f "$ZSH_CUSTOM/$1.zsh-theme" ] + if [ -f "$ZSH_CUSTOM/themes/$1.zsh-theme" ] then - source "$ZSH_CUSTOM/$1.zsh-theme" + source "$ZSH_CUSTOM/themes/$1.zsh-theme" else source "$ZSH/themes/$1.zsh-theme" fi |