diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f720807 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +zshrc diff --git a/.zshrc b/.zshrc index b3d7d8d..515b321 100644 --- a/.zshrc +++ b/.zshrc @@ -85,3 +85,12 @@ function follow() { pushd `filepath $1` fi } + +# Source per-instance customizations if they exist +if [ -e $HOME/.zcustom/zshrc ]; then + source $HOME/.zcustom/zshrc +fi + +# Remove duplicate entries in the PATH +typeset -U path + diff --git a/edorrington.zsh-theme.zsh b/edorrington.zsh-theme.zsh index 303422e..3169d19 100644 --- a/edorrington.zsh-theme.zsh +++ b/edorrington.zsh-theme.zsh @@ -1,4 +1,4 @@ -PROMPT='%n@%m %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} %{$reset_color%} %F{cyan}%~%f %F{red}❯%F{gray}❯❯%f ' +PROMPT='%n@%m %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} %{$reset_color%} %F{cyan}%~%f %F{red}❯%F{yellow}❯%F{green}❯%f ' ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" diff --git a/init.sh b/init.sh index 713b88f..b417d99 100644 --- a/init.sh +++ b/init.sh @@ -1,5 +1,10 @@ #!/bin/sh rm -f $HOME/.zshrc +curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh +mkdir -p $HOME/.oh-my-zsh/custom/plugins +cd $HOME/.oh-my-zsh/custom/plugins +git clone git://github.com/zsh-users/zsh-syntax-highlighting.git +cd $HOME ln -s $HOME/.zcustom/.zshrc $HOME/.zshrc ln -s $HOME/.zcustom/edorrington.zsh-theme.zsh $HOME/.oh-my-zsh/custom/edorrington.zsh-theme.zsh