Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better zsh config for the server side

  • Loading branch information...
commit 2f7040b96c409fdc81bc92c8bcccc42172f84ba9 1 parent 619c89a
@kaapa authored
Showing with 11 additions and 3 deletions.
  1. +11 −3 zshrc
View
14 zshrc
@@ -1,13 +1,19 @@
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="blinks"
-plugins=(git osx)
+plugins=(git rvm)
source $ZSH/oh-my-zsh.sh
bindkey '^R' history-incremental-search-backward # Traditional history search
-export PATH=/Users/petteri/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
+# Minimal prompt for a tmux session
+if { [ -n "$TMUX" ]; } then
+ PROMPT='%{%f%k%b%}
+%{%K{black}%}$(_prompt_char)%{%K{black}%} %#%{%f%k%b%} '
+ ZSH_THEME_GIT_PROMPT_SUFFIX=']'
+ RPROMPT='$(git_prompt_info)'
+fi
-local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
+export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
# Speed up git completion
# http://talkings.org/post/5236392664/zsh-and-slow-git-completion
@@ -22,3 +28,5 @@ setopt auto_pushd
zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
+
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Please sign in to comment.
Something went wrong with that request. Please try again.