more shell cleanup

This commit is contained in:
James Walker 2017-03-29 11:14:26 -04:00
parent 337de3fcba
commit 9d3d50c66e
Signed by: walkah
GPG Key ID: 3C127179D6086E93
2 changed files with 18 additions and 14 deletions

View File

@ -3,15 +3,10 @@
if [ -z $SSH_CONNECTION ]; then HCOLOR="green"; else HCOLOR="blue"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
ZSH_THEME_RVM_PROMPT_PREFIX="("
ZSH_THEME_RVM_PROMPT_SUFFIX="/"
ZSH_THEME_NVM_PROMPT_PREFIX=""
ZSH_THEME_NVM_PROMPT_SUFFIX=")"
PROMPT='%{$fg[$HCOLOR]%}%m%{$reset_color%}:%c \
$(git_prompt_info)%{$fg[red]%}%(!.#.»)%{$reset_color%} '
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
RPS1='%{$fg[cyan]%}$(ruby_prompt_info)node-$(nvm_prompt_info) %{$reset_color%}${return_code}'
RPS1='%{$fg[cyan]%}(ruby-$(ruby_prompt_info)/node-$(nvm_prompt_info)) %{$reset_color%}${return_code}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "

View File

@ -19,13 +19,19 @@ export ZSH_CUSTOM=$HOME/.zsh/custom
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(extract command-not-found tmux tmuxinator git github git-flow ruby gem rvm rails bundler heroku ssh-agent npm nvm yarn pyenv golang drush composer vagrant knife docker docker-compose mix mix-fast)
plugins=(extract command-not-found tmux tmuxinator git github git-flow ssh-agent golang vagrant knife docker docker-compose mix mix-fast)
# Python/ virtualenv
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
export WORKON_HOME=$HOME/.virtualenvs
plugins=($plugins virtualenvwrapper pip django fabric)
fi
# ruby
plugins=($plugins ruby gem rbenv rails bundler heroku)
# node
plugins=($plugins nvm npm yarn)
# python
plugins=($plugins pyenv pip)
# php / drupal
plugins=($plugins drush composer)
# Platform specific settings
case "$OSTYPE" in
@ -39,6 +45,11 @@ esac
UNBUNDLED_COMMANDS=(knife)
# nvm from homebrew
if [ -f /usr/local/opt/nvm/nvm.sh ]; then
source /usr/local/opt/nvm/nvm.sh
fi
# OH MY ZSH!
source $ZSH/oh-my-zsh.sh
@ -59,5 +70,3 @@ if [ $TERM = "screen" ]; then
fi
export EDITOR="vim"
export LSCOLORS="ExGxFxdxCxDxDxhbadExEx"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting