From c400ab787fbbdc393468c290fce150165ae092c3 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Thu, 16 Oct 2014 12:34:36 -0700 Subject: [PATCH] Add my theme and setup a ZSH_CUSTOM directory. --- zsh_custom/themes/matir.zsh-theme | 1 + zshrc | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) create mode 100644 zsh_custom/themes/matir.zsh-theme diff --git a/zsh_custom/themes/matir.zsh-theme b/zsh_custom/themes/matir.zsh-theme new file mode 100644 index 0000000..af564f4 --- /dev/null +++ b/zsh_custom/themes/matir.zsh-theme @@ -0,0 +1 @@ +PROMPT="%{%(!.$fg[red].$fg[green])%}%n%{$fg[white]%}@%{$fg[cyan]%}%m%{$fg[white]%}:%{$fg[green]%}%32<...<%~%<<%{$fg[white]%}%#%{$reset_color%} " diff --git a/zshrc b/zshrc index 1ca51db..a5f370c 100644 --- a/zshrc +++ b/zshrc @@ -32,17 +32,10 @@ alias ls='ls --color' if [ -d $HOME/.oh-my-zsh ] ; then ZSH=$HOME/.oh-my-zsh ZSH_THEME="matir" - ORIG_PS1="${PS1}" - if [[ ! -a $ZSH/themes/$ZSH_THEME ]] ; then - ZSH_THEME="" - fi + ZSH_CUSTOM="$HOME/.dotfiles/zsh_custom" plugins=(git encode64 gpg-agent pep8 pip python tmux urltools extract sudo) source $ZSH/oh-my-zsh.sh unset ZSH_THEME - if [[ "$PS1" == "%n@%m:%~%# " ]] ; then - PS1="${ORIG_PS1}" - fi - unset ORIG_PS1 fi # Keybindings