mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
more consistaint
This commit is contained in:
parent
e84536c6aa
commit
1234fac27f
1 changed files with 3 additions and 2 deletions
5
omz
5
omz
|
|
@ -15,7 +15,7 @@ omz() {
|
||||||
# add plugins to fpath
|
# add plugins to fpath
|
||||||
for plugin ($plugins); do
|
for plugin ($plugins); do
|
||||||
files=({$OMZ,$ZSH}/plugins/$plugin)
|
files=({$OMZ,$ZSH}/plugins/$plugin)
|
||||||
fpath+=$files[1]
|
fpath=($files[1] $fpath)
|
||||||
done
|
done
|
||||||
|
|
||||||
# Load and run compinit
|
# Load and run compinit
|
||||||
|
|
@ -38,7 +38,8 @@ omz() {
|
||||||
"theme")
|
"theme")
|
||||||
local theme
|
local theme
|
||||||
zstyle -a :omz:style theme theme
|
zstyle -a :omz:style theme theme
|
||||||
set_theme ${2:-$theme}
|
[[ -f {$OMZ,$ZSH}/themes/$2.zsh-theme(N) ]] && theme=$2 || omz_log_msg "Theme: $2 not found."
|
||||||
|
set_theme $theme
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "$0: invalid command $1" 2>&1
|
echo "$0: invalid command $1" 2>&1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue