From c65f3b47303daa406aeae8e05d5bcc4959bfd884 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Wed, 15 Oct 2014 21:40:52 -0700 Subject: [PATCH] Include my prompt when no zsh theme is available. --- zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zshrc b/zshrc index 7871f69..1ca51db 100644 --- a/zshrc +++ b/zshrc @@ -32,8 +32,17 @@ 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 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