Skip to content

Instantly share code, notes, and snippets.

@teburd
Created February 29, 2012 15:29
Show Gist options
  • Save teburd/1941641 to your computer and use it in GitHub Desktop.
Save teburd/1941641 to your computer and use it in GitHub Desktop.
zshrc
# Colors
autoload -U colors && colors
# Autocomplete
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
autoload -Uz compinit && compinit
# Auto correct
setopt correctall
# History
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
# Beep disable
unsetopt beep
# Emacs keybinds
bindkey -e
# Prompt with VCS Info
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:*' actionformats '%F{6}%b%F{3}|%F{1}%a%f '
zstyle ':vcs_info:*' formats ' on %F{magenta}%b%f '
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
precmd () { vcs_info }
# Aliases
alias ls='ls --color=auto'
PROMPT='
%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}${vcs_info_msg_0_}
$ '
# Path
export PATH=$HOME/bin:$HOME/.cabal/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment