aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-07-05 21:00:01 +0200
committerneodarz <neodarz@neodarz.net>2018-07-05 21:00:01 +0200
commit2f7f473685628359197e3a90a83bce94ef177bc7 (patch)
tree1481232837b9d7ac292e232d8e0f1897d4f9d09e
parent24ce8cf3b0d5935a7b34ff81f52a839344d796ee (diff)
downloaddotfiles_ascii-2f7f473685628359197e3a90a83bce94ef177bc7.tar.xz
dotfiles_ascii-2f7f473685628359197e3a90a83bce94ef177bc7.zip
update zsh config
-rwxr-xr-xzsh/.zshrc28
1 files changed, 27 insertions, 1 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index d7cd770..e61d0f9 100755
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -17,7 +17,33 @@
#█▓▒░ load configs
for config (~/.zsh/*.zsh) source $config
-export TERM=rxvt-unicode
+export TERM=xterm-256color
export CHEAT_EDITOR=nvim
export VISUAL=nvim
export EDITOR=nvim
+
+# key bindings
+bindkey "\e[1~" beginning-of-line
+bindkey "\e[4~" end-of-line
+bindkey "\e[5~" beginning-of-history
+bindkey "\e[6~" end-of-history
+bindkey "\e[3~" delete-char
+bindkey "\e[2~" quoted-insert
+bindkey "\e[5C" forward-word
+bindkey "\eOc" emacs-forward-word
+bindkey "\e[5D" backward-word
+bindkey "\eOd" emacs-backward-word
+bindkey "\ee[C" forward-word
+bindkey "\ee[D" backward-word
+bindkey "^H" backward-delete-word
+# for rxvt
+bindkey "\e[8~" end-of-line
+bindkey "\e[7~" beginning-of-line
+# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
+bindkey "\eOH" beginning-of-line
+bindkey "\eOF" end-of-line
+# for freebsd console
+bindkey "\e[H" beginning-of-line
+bindkey "\e[F" end-of-line
+# completion in the middle of a line
+bindkey '^i' expand-or-complete-prefix