Skip to content

Instantly share code, notes, and snippets.

@kiddouk
Created October 2, 2012 12:20
Show Gist options
  • Save kiddouk/3818597 to your computer and use it in GitHub Desktop.
Save kiddouk/3818597 to your computer and use it in GitHub Desktop.
Kiddoul's Zsh conf
# The following lines were added by compinstall
export LC_ALL=en_US.UTF-8
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' completions 1
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' glob 1
zstyle ':completion:*' group-name ''
zstyle ':completion:*' max-errors 3
zstyle ':completion:*' prompt '%e'
zstyle ':completion:*' substitute 1
zstyle :compinstall filename '/home/kiddouk/.zshrc'
autoload -Uz compinit
compinit
autoload -Uz vcs_info
zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
zstyle ':vcs_info:*' formats '%F{5}[%F{2}%b%F{5}]%f '
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh/histfile
HISTSIZE=1000
SAVEHIST=1000
setopt autocd beep extendedglob notify
bindkey -e
# End of lines configured by zsh-newuser-install
# Before showing the promt, execute the following commands
precmd () { vcs_info }
function setprompt () {
setopt prompt_subst
autoload colors zsh/terminfo
if [[ "$terminfo[colors]" -ge 8 ]]; then
colors
fi
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE GREY; do
eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
(( count = $count + 1 ))
done
PR_NO_COLOUR="%{$terminfo[sgr0]%}"
typeset -A altchar
set -A altchar ${(s..)terminfo[acsc]}
PR_SET_CHARSET="%{$terminfo[enacs]%}"
PR_SHIFT_IN="%{$terminfo[smacs]%}"
PR_SHIFT_OUT="%{$terminfo[rmacs]%}"
# PR_HBAR=${altchar[q]:--}
# PR_ULCORNER=${altchar[l]:--}
# PR_LLCORNER=${altchar[m]:--}
# PR_LRCORNER=${altchar[j]:--}
# PR_URCORNER=${altchar[k]:--}
PWLEN=15
PROMPT='$PR_SET_CHARSET\
$PR_BLUE$PR_LIGHT_CYAN%(!.%SROOT%s.%n)$PR_BLUE@$PR_GREEN%m\
${PR_YELLOW}[ %$PWLEN<...<%~%<< ]\
$PR_NO_COLOUR '
RPROMPT='[$PR_BLUE%(?..${PR_LIGHT_RED}Err %?$PR_BLUE:)\
$PR_NO_COLOUR%D{%H:%M}$PR_NO_COLOUR]\
$PR_NO_COLOUR ${vcs_info_msg_0_}%f'
PS2='%_ >'
}
setprompt
source /usr/local/bin/virtualenvwrapper.sh
alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
alias ls="ls -G $*"
autoload -U select-word-style
select-word-style bash
export NODE_PATH=/usr/local/lib/node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment