Skip to content
Browse files

Some useful Mike Burns-isms

  • Loading branch information...
1 parent ae6386f commit ea2569ca190a618dee2eefd4578937084d4c7dab @mike-burns mike-burns committed Jan 14, 2011
Showing with 22 additions and 1 deletion.
  1. +7 −0 aliases
  2. +15 −1 zshrc
View
7 aliases
@@ -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}'"
View
16 zshrc
@@ -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

0 comments on commit ea2569c

Please sign in to comment.
Something went wrong with that request. Please try again.