71c59eaf8554f1677f88423065596f39eb41973f

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Moving bindings into their own file. Updating aliases after moving out bindings

Diff

 1diff --git a/aliases.zsh b/aliases.zsh
 2index e27cd036670aaa26a8f02955c7780828a1ae21eb..eef321de54ba6d687bf137ded6aee59ee4c02032 100644
 3--- a/aliases.zsh
 4+++ b/aliases.zsh
 5@@ -25,15 +25,10 @@ alias rfind='find . -name *.rb | xargs grep -n'
 6 
 7 alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
 8 
 9-bindkey '\ew' kill-region
10-
11-bindkey -s '\el' "ls\n"
12-bindkey -s '\e.' "..\n"
13-
14 alias et='mate . &'
15 alias ett='mate app config lib db public spec test Rakefile Capfile Todo &'
16 alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
17 alias etts='mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
18 
19-bindkey "^[[A" history-beginning-search-backward
20-bindkey "^[[B" history-beginning-search-forward
21+
22+
23diff --git a/key-bindings.zsh b/key-bindings.zsh
24new file mode 100644
25index 0000000000000000000000000000000000000000..20caad11f65c45e86bcd970b59053d856b398fb1
26--- /dev/null
27+++ b/key-bindings.zsh
28@@ -0,0 +1,14 @@
29+# TODO: Explain what some of this does..
30+autoload -U compinit
31+compinit
32+bindkey '\ew' kill-region
33+bindkey -s '\el' "ls\n"
34+bindkey -s '\e.' "..\n"
35+bindkey '^r' history-incremental-search-backward
36+bindkey "^[[5~" up-line-or-history
37+bindkey "^[[6~" down-line-or-history
38+bindkey "^[[H" beginning-of-line
39+bindkey "^[[1~" beginning-of-line
40+bindkey "^[[F"  end-of-line
41+bindkey "^[[4~" end-of-line
42+bindkey ' ' magic-space    # also do history expansion on space