Commits

Bruce Wang committed 1990878

add bindkey, change screen/xterm title

Comments (0)

Files changed (1)

     print -Pn "\ek$a:$3\e\\"      # screen title (in ^A")
     ;;
   xterm*|rxvt)
-    print -Pn "\e]2;$2 | $a:$3\a" # plain xterm title
+    print -Pn "\e]2;$a:$3 | $2\a" # plain xterm title
     ;;
   esac
 }
 
 # vi editing
 bindkey -v
+bindkey '^[OH' beginning-of-line
+bindkey '^[OF' end-of-line
+bindkey '^[[5~' up-line-or-history
+bindkey '^[[6~' down-line-or-history
+bindkey ' ' magic-space    # also do history expansion on space
+bindkey '^I' complete-word # complete on tab, leave expansion to _expand
 
 # colorful listings
 zmodload -i zsh/complist