Created
July 18, 2011 14:30
-
-
Save leanucci/1089676 to your computer and use it in GitHub Desktop.
zlogin file
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
21703 11:28 ~ > cat .zlogin | |
# 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]%}" | |
NRED="%{$fg_bold[red]%}" | |
GREEN="%{$fg[green]%}" | |
NGREEN="%{$fg_bold[green]%}" | |
BLUE="%{$fg[blue]%}" | |
NBLUE="%{$fg_bold[blue]%}" | |
GREY="%{$fg[grey]%}" | |
NGREY="%{$fg_bold[grey]%}" | |
BLACK="%{$fg[black]%}" | |
GREY="%{$fg[grey]%}" | |
MAGENTA="%{$fg[magenta]%}" | |
NMAGENTA="%{$fg_bold[magenta]%}" | |
CYAN="%{$fg[cyan]%}" | |
NCYAN="%{$fg_bold[cyan]%}" | |
WHITE="%{$fg[white]%}" | |
NWHITE="%{$fg_bold[white]%}" | |
YELLOW="%{$fg[yellow]%}" | |
NYELLOW="%{$fg_bold[yellow]%}" | |
RESET="%{$reset_color%}" | |
#/VARIABLES | |
#AUTOLOAD | |
autoload colors; colors | |
autoload -Uz vcs_info | |
#/AUTOLOAD | |
#PATH CONFIG | |
export PATH=/usr/local/ssl/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 --color' | |
alias gbr='git branch -r --color' | |
alias gbl='git branch --color' | |
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' | |
alias grc='git rebase --continue' #comela puto | |
#/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" # 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="${NRED}%T${RESET}" | |
HIST="${NGREEN}%h${RESET}" | |
local git='$vcs_info_msg_0_' | |
GIT="${NGREY}$git${RESET}" | |
PROMPT_SYMBOL="${NYELLOW} > ${RESET}" | |
PROMPT="${HIST} ${TIME} %B%~%b${GIT}${PROMPT_SYMBOL}" | |
} | |
lprompt "" | |
#/PROMPT | |
#RVM | |
source ~/.rvm/scripts/rvm # load the new code into your current shell and start using rvm ! w00t! | |
#/RVM | |
# RAILS | |
alias tt='touch restart.txt' | |
alias db='rake db:drop:all && rake db:create:all && rake db:migrate && rake db:test:prepare' | |
alias ett='mate app/ test/unit/ test/functional/ public/javascripts/ public/stylesheets/ config/ db/ lib/ test/factories.rb test/test_helper.rb Gemfile README .gitignore' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment