mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
This should be interesting.
This commit is contained in:
parent
e7acbeada5
commit
c974f24fb5
2 changed files with 53 additions and 41 deletions
14
oh-my-zsh
14
oh-my-zsh
|
|
@ -1,8 +1,11 @@
|
|||
# Initializes Oh My Zsh
|
||||
oh-my-zsh() {
|
||||
# omz control center
|
||||
|
||||
omz() {
|
||||
ZSH=${ZSH:-/usr/share/oh-my-zsh}
|
||||
OMZ=${OMZ:-$HOME/.omz}
|
||||
|
||||
case "$1" in
|
||||
"start")
|
||||
local config_file plugin
|
||||
plugin=${plugin:=()}
|
||||
|
||||
|
|
@ -48,4 +51,11 @@ done
|
|||
local theme
|
||||
zstyle -a :omz:style 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.
|
||||
|
||||
autoload omz
|
||||
|
||||
zstyle :omz:style theme "arch-blue"
|
||||
|
||||
plugins=(archlinux sprunge git github)
|
||||
|
||||
omz_init
|
||||
omz init
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue