diff --git a/zsh/zsh/20_aliases.sh b/zsh/zsh/20_aliases.sh index 51bd1e4..a0e361c 100644 --- a/zsh/zsh/20_aliases.sh +++ b/zsh/zsh/20_aliases.sh @@ -65,3 +65,5 @@ alias t="tmux" alias cl="clear" alias nocolor="sed -r \"s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g\"" + +alias ip="ip -color" diff --git a/zsh/zsh/60_keybinds.sh b/zsh/zsh/60_keybinds.sh new file mode 100644 index 0000000..d14d8dd --- /dev/null +++ b/zsh/zsh/60_keybinds.sh @@ -0,0 +1,26 @@ +autoload zkbd + +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