Ver Fonte

Clean up zshrc a bit

Andrew Swistak há 11 anos atrás
pai
commit
ddaa080af3
1 ficheiros alterados com 4 adições e 6 exclusões
  1. 4 6
      zshrc

+ 4 - 6
zshrc

@@ -5,17 +5,11 @@ SAVEHIST=1000
 setopt incappendhistory nomatch correct
 unsetopt beep
 bindkey -v
-
 zstyle :compinstall filename '/home/drew/.zshrc'
 
 autoload -Uz compinit
 compinit
 
-export PATH="$PATH:$HOME/.rvm/bin"
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
-
-export EDITOR="vim"
-
 autoload -U colors && colors
 # Have to reset color to cyan after the bold tags for some reason.
 PROMPT="%{$fg[cyan]%}[%n@%M %B%1~%b%{$fg[cyan]%}]%# %{$reset_color%}"
@@ -34,6 +28,7 @@ vim() {
   command vim --servername vim "$@"
   stty "$STTYOPTS"
 }
+export EDITOR="vim"
 
 # Set Home, End, Del, PgUp, PgDown keys to actually do something.
 bindkey '^[OH' beginning-of-line
@@ -46,5 +41,8 @@ if [ -x /usr/bin/ssh-agent -a -z "$SSH_AUTH_SOCK" ]; then
   eval "$(keychain --eval -Q -q --agents ssh  `find $HOME/.ssh/*  ! -name '*.pub' ! -name 'config' ! -name 'known_hosts'`)"
 fi
 
+export PATH="$PATH:$HOME/.rvm/bin"
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
+
 source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh