mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Updated more omz, just a few tweaks and now omz plugin ... works as expected.
This commit is contained in:
parent
82e7ddf686
commit
bb3ba5b0c3
3 changed files with 4 additions and 47 deletions
9
omz
9
omz
|
|
@ -22,15 +22,14 @@ omz () {
|
|||
for config_file ({$ZSH/lib,$OMZ}/*.zsh(N))
|
||||
source $config_file
|
||||
|
||||
# !next
|
||||
omz plugin
|
||||
omz plugin $plugins
|
||||
omz theme ;;
|
||||
# Load plugins, can be used to load a plugin during runtime.
|
||||
("plugin") shift; local plugin files
|
||||
for plugin in $plugins $@; do
|
||||
files=({$OMZ,$ZSH}/plugins/$plugin/$(basename $plugin).plugin.zsh(N))
|
||||
for plugin in $@; do
|
||||
files=({$OMZ,$ZSH}/plugins/$plugin/*.zsh(N))
|
||||
[[ ${#files} -eq 0 ]] && omz_log_msg "$plugin: Plugin not found." && continue
|
||||
source $files[1] || omz_log_msg "$plugin: Error, can't source plugin file."
|
||||
source $files[1] || omz_log_msg "$plugin: Error, can't source plugin file."
|
||||
done ;;
|
||||
("theme") local theme
|
||||
zstyle -a :omz:style theme theme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue