Improved the logging library so you are informed of any errors, and moved the archblue theme to default.zsh-theme.

This commit is contained in:
ArcheyDevil 2012-02-12 18:47:24 +11:00
commit 3072b06211
4 changed files with 16 additions and 14 deletions

View file

@ -1,6 +1,6 @@
omz_log_msg() { omz_log_msg() {
[[ ! -d $OMZ ]] && mkdir $OMZ [[ ! -d $OMZ ]] && mkdir $OMZ
echo "$@" >> $OMZ/omz.log echo "$@" >> $OMZ/omz.log >&2
} }
omzlog() { omzlog() {

View file

@ -2,8 +2,20 @@
autoload omz autoload omz
zstyle :omz:style theme "arch-blue" plugins=(archlinux git sprunge tmux)
plugins=(archlinux sprunge git github) zstyle :omz:style theme default
zstyle ':omz:plugins:*' autostart on
# Comment out the following line if you wish for every z shell.
zstyle :omz:plugins:tmux autostart off
# cmd, t irc will launch irssi inside a tmux session named irc.
# dir, t code will launch a shell inside of tmux in $HOME/code.
zstyle :omz:plugins:tmux:cmd irc irssi
zstyle :omz:plugins:tmux:dir code $HOME/code
# Initiate all omz awesomeness!
omz init omz init
# All *.zsh in .omz are sourced too, example you can put your
# custom aliases in that file.
# vim: ft=zsh

View file

@ -1,10 +0,0 @@
(( EUID == 0 )) && ucolor=red || ucolor=cyan
[[ -n $SSH_TTY ]] && hostcolor=red || hostcolor=blue
PROMPT='%{$fg[$ucolor]%}%n%{$reset_color%}@%{$fg[$hostcolor]%}%m%{$reset_color%}: %{$fg[green]%}%0~%{$fg[red]%}%(?.. [%?]) %{$reset_color%}%% '
RPROMPT='$(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}["
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""

View file

@ -1,5 +1,5 @@
(( EUID == 0 )) && ucolor=red || ucolor=cyan (( EUID == 0 )) && ucolor=red || ucolor=cyan
[[ -n $SSH_TTY ]] && hostcolor=red || hostcolor=blue [[ -n $SSH_TTY ]] && hostcolor=yellow || hostcolor=blue
PROMPT='%{$fg[$ucolor]%}%n%{$reset_color%}@%{$fg[$hostcolor]%}%m%{$reset_color%}: %{$fg[green]%}%0~%{$fg[red]%}%(?.. [%?]) %{$reset_color%}%% ' PROMPT='%{$fg[$ucolor]%}%n%{$reset_color%}@%{$fg[$hostcolor]%}%m%{$reset_color%}: %{$fg[green]%}%0~%{$fg[red]%}%(?.. [%?]) %{$reset_color%}%% '
RPROMPT='$(git_prompt_info)' RPROMPT='$(git_prompt_info)'