Some useful Mike Burns-isms

This commit is contained in:
Mike Burns 2011-01-14 01:17:25 -05:00
parent ae6386f8ce
commit ea2569ca19
2 changed files with 22 additions and 1 deletions

View file

@ -10,4 +10,11 @@ alias gci="git pull --rebase && rake && git push"
alias tlf="tail -f"
alias b="bundle"
alias be="bundle exec"
alias ln='ln -v'
alias mkdir='mkdir -p'
alias ...='../..'
alias -g G='| grep'
alias -g M='| less'
alias -g L='| wc -l'
alias -g ONE="| awk '{ print \$1}'"

16
zshrc
View file

@ -19,10 +19,21 @@ fi
# vi mode
bindkey -v
bindkey ^F vi-cmd-mode
bindkey jj vi-cmd-mode
# use incremental search
bindkey ^R history-incremental-search-backward
# add some readline keys back
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
# handy keybindings
bindkey "^P" history-search-backward
bindkey "^Y" accept-and-hold
bindkey "^N" insert-last-word
bindkey -s "^T" "^[Isudo ^[A" # "t" for "toughguy"
# expand functions in the prompt
setopt prompt_subst
@ -33,8 +44,11 @@ export PS1='[${SSH_CONNECTION+"%n@%m:"}%~] '
setopt histignoredups
# keep more history
export HISTSIZE=200
export HISTSIZE=1000
# look for ey config in project dirs
export EYRC=./.eyrc
# automatically pushd
setopt auto_pushd
export dirstacksize=5