mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
This should be interesting.
This commit is contained in:
parent
e7acbeada5
commit
c974f24fb5
2 changed files with 63 additions and 51 deletions
14
oh-my-zsh
14
oh-my-zsh
|
|
@ -1,8 +1,11 @@
|
||||||
# Initializes Oh My Zsh
|
# omz control center
|
||||||
oh-my-zsh() {
|
|
||||||
|
omz() {
|
||||||
ZSH=${ZSH:-/usr/share/oh-my-zsh}
|
ZSH=${ZSH:-/usr/share/oh-my-zsh}
|
||||||
OMZ=${OMZ:-$HOME/.omz}
|
OMZ=${OMZ:-$HOME/.omz}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
"start")
|
||||||
local config_file plugin
|
local config_file plugin
|
||||||
plugin=${plugin:=()}
|
plugin=${plugin:=()}
|
||||||
|
|
||||||
|
|
@ -48,4 +51,11 @@ done
|
||||||
local theme
|
local theme
|
||||||
zstyle -a :omz:style theme theme
|
zstyle -a :omz:style theme theme
|
||||||
set_theme $theme
|
set_theme $theme
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "$0: invalid command $1" 2>&1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# vi: ft=zsh
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
# Check /etc/zsh/zshrc for system defaults.
|
# Check /etc/zsh/zshrc for system defaults.
|
||||||
|
|
||||||
|
autoload omz
|
||||||
|
|
||||||
zstyle :omz:style theme "arch-blue"
|
zstyle :omz:style theme "arch-blue"
|
||||||
|
|
||||||
plugins=(archlinux sprunge git github)
|
plugins=(archlinux sprunge git github)
|
||||||
|
|
||||||
omz_init
|
omz init
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue