From 3072b06211ee3de74753c80a323984507976c275 Mon Sep 17 00:00:00 2001 From: ArcheyDevil Date: Sun, 12 Feb 2012 18:47:24 +1100 Subject: [PATCH] Improved the logging library so you are informed of any errors, and moved the archblue theme to default.zsh-theme. --- lib/logging.zsh | 2 +- templates/user.zsh-template | 16 ++++++++++++++-- themes/arch-blue.zsh-theme | 10 ---------- themes/default.zsh-theme | 2 +- 4 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 themes/arch-blue.zsh-theme diff --git a/lib/logging.zsh b/lib/logging.zsh index b3a9118a0..ecae9bef4 100644 --- a/lib/logging.zsh +++ b/lib/logging.zsh @@ -1,6 +1,6 @@ omz_log_msg() { [[ ! -d $OMZ ]] && mkdir $OMZ - echo "$@" >> $OMZ/omz.log + echo "$@" >> $OMZ/omz.log >&2 } omzlog() { diff --git a/templates/user.zsh-template b/templates/user.zsh-template index c387d2161..6b2eabe39 100644 --- a/templates/user.zsh-template +++ b/templates/user.zsh-template @@ -2,8 +2,20 @@ 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 +# All *.zsh in .omz are sourced too, example you can put your +# custom aliases in that file. + +# vim: ft=zsh diff --git a/themes/arch-blue.zsh-theme b/themes/arch-blue.zsh-theme deleted file mode 100644 index bd8045333..000000000 --- a/themes/arch-blue.zsh-theme +++ /dev/null @@ -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="" diff --git a/themes/default.zsh-theme b/themes/default.zsh-theme index bd8045333..90d1c2207 100644 --- a/themes/default.zsh-theme +++ b/themes/default.zsh-theme @@ -1,5 +1,5 @@ (( 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%}%% ' RPROMPT='$(git_prompt_info)'