Created
April 12, 2013 21:27
-
-
Save kevinswiber/5375260 to your computer and use it in GitHub Desktop.
Just getting started with zsh. Here's my current ~/.zshrc file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZSH=$HOME/.oh-my-zsh | |
plugins=(git node npm osx vi-mode) | |
source $ZSH/oh-my-zsh.sh | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
[[ -s "$HOME/nvm/nvm.sh" ]] && source "$HOME/nvm/nvm.sh" | |
# Use vi bindings in the terminal | |
bindkey -v | |
# Fix backspace action | |
bindkey "^?" backward-delete-char | |
# Use Vim-style indicators in the terminal | |
function zle-line-init zle-keymap-select { | |
RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}" | |
RPS2=$RPS1 | |
zle reset-prompt | |
} | |
zle -N zle-line-init | |
zle -N zle-keymap-select | |
# Make vi mode transitions faster | |
KEYTIMEOUT=1 | |
PROMPT="%{$fg_bold[green]%}» %{$reset_color%}" | |
alias ls='ls -GFph' | |
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim' | |
export CLICOLOR=1 | |
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
export EDITOR=vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't your PROMPT kill anything nifty your plugins like git are trying to add? I ended up choosing the agnoster theme, but commenting out the context call from the bottom to eliminate the longish "user@host" part. Will probably be trouble if I update..