Created
January 21, 2013 19:34
-
-
Save anonymous/4588599 to your computer and use it in GitHub Desktop.
This file contains 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
# load zsh tab completion | |
autoload -U compinit | |
autoload -Uz vcs_info | |
compinit | |
# report time when command takes more than ... | |
REPORTTIME=10 | |
# LS_COLORS | |
export LS_COLORS="no=00:fi=00:di=1;36:ln=00;35:pi=40;33:so=00;35;33;00:cd=40;33;00:or=40;31;00:ex=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.deb=00;31:*.rpm=00;31:*.jpg=00;35:*.png=00;35:*.gif=00;35:*.bmp=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=00;35:*.xpm=00;35:*.tif=00;35:*.png=00;35:*.mpg=00;35:*.avi=00;35:*.fli=00;35:*.gl=00;35:*.dl=00;35:" | |
# tmuxinator | |
[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source $HOME/.tmuxinator/scripts/tmuxinator | |
# oh-my-zsh-powerline | |
POWERLINE_COLOR_BG_GRAY=%K{240} | |
POWERLINE_COLOR_BG_LIGHT_GRAY=%K{240} | |
POWERLINE_COLOR_BG_WHITE=%K{255} | |
POWERLINE_COLOR_FG_GRAY=%F{240} | |
POWERLINE_COLOR_FG_LIGHT_GRAY=%F{240} | |
POWERLINE_COLOR_FG_WHITE=%F{255} | |
GIT_DIRTY_COLOR=%F{100} | |
GIT_CLEAN_COLOR=%F{100} | |
GIT_PROMPT_INFO=%F{012} | |
ZSH_THEME_GIT_PROMPT_PREFIX=" \u2b60 " | |
ZSH_THEME_GIT_PROMPT_SUFFIX="$GIT_PROMPT_INFO" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" $GIT_DIRTY_COLOR✘" | |
ZSH_THEME_GIT_PROMPT_CLEAN=" $GIT_CLEAN_COLOR✔" | |
ZSH_THEME_GIT_PROMPT_ADDED="%F{082}✚%f" | |
ZSH_THEME_GIT_PROMPT_MODIFIED="%F{166}✹%f" | |
ZSH_THEME_GIT_PROMPT_DELETED="%F{160}✖%f" | |
ZSH_THEME_GIT_PROMPT_RENAMED="%F{220]➜%f" | |
ZSH_THEME_GIT_PROMPT_UNMERGED="%F{082]═%f" | |
ZSH_THEME_GIT_PROMPT_UNTRACKED="%F{190]✭%f" | |
ZSH_THEME_GIT_PROMPT_AHEAD="%{$RED%}!" | |
PROMPT=" | |
%K{green}%F{black} %n@%m %k%f%F{green}%K{yellow}"$'\u2b80'"%k%f%F{black}%K{yellow} %~ %k%f%F{yellow}"$'\u2b80'"%f | |
%k%f%F{white}"'>> '"" | |
# precmd hook | |
function precmd { | |
vcs_info 'prompt' | |
if [ -z "$vcs_info_msg_0_" ]; then | |
RPROMPT='' | |
else | |
RPROMPT=$POWERLINE_COLOR_FG_WHITE$'\u2b82'"%f$POWERLINE_COLOR_BG_WHITE $POWERLINE_COLOR_FG_GRAY"$'$(git_prompt_info)'""$'$(git_prompt_ahead)'" $POWERLINE_COLOR_FG_GRAY"$'\u2b82'"%f%k$POWERLINE_COLOR_BG_GRAY$POWERLINE_COLOR_FG_WHITE "$'$(git_prompt_short_sha) '"%f%k" | |
fi; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment