summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/keys4
-rw-r--r--etc/rc1
2 files changed, 5 insertions, 0 deletions
diff --git a/etc/keys b/etc/keys
new file mode 100644
index 0000000..2507aaa
--- /dev/null
+++ b/etc/keys
@@ -0,0 +1,4 @@
+## vim:ft=zsh
+[[ -z $terminfo[kdch1] ]] || bindkey -M emacs $terminfo[kdch1] delete-char
+[[ -z $terminfo[khome] ]] || bindkey -M emacs $terminfo[khome] beginning-of-line
+[[ -z $terminfo[kend] ]] || bindkey -M emacs $terminfo[kend] end-of-line
diff --git a/etc/rc b/etc/rc
index 30ba9fa..a5093b4 100644
--- a/etc/rc
+++ b/etc/rc
@@ -19,6 +19,7 @@ source $ZDIR/function
source $ZDIR/options
source $ZDIR/prompt
source $ZDIR/directories
+source $ZDIR/keys
source $ZDIR/alias/suffix
source $ZDIR/alias/font
source $ZDIR/alias/default