diff --git a/.zshrc b/.zshrc index 86368f3..0824484 100644 --- a/.zshrc +++ b/.zshrc @@ -65,6 +65,20 @@ key[Insert]=${terminfo[kich1]} key[PageDown]=${terminfo[knp]} key[PageUp]=${terminfo[kpp]} key[Up]=${terminfo[kcuu1]} +# +# Terminal hack (keyup/keydown) for Ubuntu 12.04 & FreeBSD +if [[ -f /etc/lsb-release ]]; then + source /etc/lsb-release + + if [[ "$DISTRIB_RELEASE" == "12.04" ]]; then + key[Down]="" + key[Up]="" + fi +elif [[ "`sysctl kern.ostype 2>&1`" == "FreeBSD" ]]; then + key[Down]="" + key[Up]="" +fi +# [[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char [[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line [[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line