Created
February 15, 2010 13:26
-
-
Save leanucci/304646 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
# The following lines were added by compinstall | |
zstyle ':completion:*' completer _ignored _approximate | |
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} | |
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s | |
zstyle ':completion:*' matcher-list '' 'r:|[._-]=** r:|=**' | |
zstyle ':completion:*' menu select=1 | |
zstyle ':completion:*' original true | |
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s | |
zstyle ':completion:*' verbose true | |
zstyle :compinstall filename '/Users/leanucci/.zshrc' | |
autoload -Uz compinit | |
compinit | |
# End of lines added by compinstall | |
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=10000 | |
SAVEHIST=100000 | |
setopt autocd | |
bindkey -v | |
# End of lines configured by zsh-newuser-install | |
# | |
# # | |
# MY LINES # | |
# # | |
#VARIABLES | |
##COLORS | |
##COLOR="%{$fg[color]%}" | |
RED="%{$fg[red]%}" | |
GREEN="%{$fg[green]%}" | |
BLUE="%{$fg[blue]%}" | |
GREY="%{$fg[grey]%}" | |
BLACK="%{$fg[black]%}" | |
MAGENTA="%{$fg[magenta]%}" | |
CYAN="%{$fg[cyan]%}" | |
WHITE="%{$fg[white]%}" | |
YELLOW="%{$fg[yellow]%}" | |
RESET="%{$reset_color%}" | |
#/VARIABLES | |
#AUTOLOAD | |
autoload colors; colors | |
autoload -Uz vcs_info | |
#/AUTOLOAD | |
#PATH CONFIG | |
export PATH=/opt/ree/bin:/opt/local/bin:/opt/local/sbin:"$PATH":/usr/local/bin:/usr/local/mysql/bin | |
#/PATH CONFIG | |
# GIT ALIASES | |
alias gco='git checkout' | |
alias gba='git branch -a' | |
alias gca='git commit -a -v' | |
alias gst='git status' | |
alias gsa='git stash save' | |
alias gli='git stash list' | |
alias gsh='git stash show' | |
#/GIT ALIASES | |
#EDITOR ENV | |
export EDITOR='mvim' | |
export VISUAL=$EDITOR | |
export SVN_EDITOR=$EDITOR | |
#/EDITOR ENV | |
#PROMPT | |
# as seen in http://kriener.org/articles/2009/06/04/zsh-prompt-magic | |
setopt prompt_subst | |
# set formats | |
# %b - branchname | |
# %u - unstagedstr (see below) | |
# %c - stangedstr (see below) | |
# %a - action (e.g. rebase-i) | |
# %R - repository path | |
# %S - path in the repository | |
# FMT_BRANCH="%{$fg[grey]%}%B(%b%u%c)%b%{$reset_color}" # e.g. master¹² | |
# FMT_ACTION="%a" # e.g. (rebase-i) | |
FMT_BRANCH="%b%u%c" # e.g. master¹² | |
FMT_ACTION="%a" # e.g. (rebase-i) | |
# check-for-changes can be really slow. | |
# you should disable it, if you work with large repositories | |
zstyle ':vcs_info:*:prompt:*' check-for-changes true | |
zstyle ':vcs_info:*:prompt:*' unstagedstr '¹' # display ¹ if there are unstaged changes | |
zstyle ':vcs_info:*:prompt:*' stagedstr '²' # display ² if there are staged changes | |
zstyle ':vcs_info:*:prompt:*' actionformats " (${FMT_BRANCH}-${FMT_ACTION})" #"${FMT_PATH}" | |
zstyle ':vcs_info:*:prompt:*' formats " (${FMT_BRANCH})" | |
zstyle ':vcs_info:*:prompt:*' nvcsformats "" "%~" | |
function precmd { | |
vcs_info 'prompt' | |
} | |
function lprompt { | |
TIME="${MAGENTA}%T${RESET}" | |
local git='$vcs_info_msg_0_' | |
GIT="${GREY}${git}${RESET}" | |
PROMPT_SYMBOL="${MAGENTA} %% ${RESET}" | |
PROMPT="%B${TIME}%b %~%B${GIT}${PROMPT_SYMBOL}%b" | |
} | |
lprompt "" | |
#/PROMPT | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment