bindkey -e >/dev/null 2>&1
-bindkey `tput khome` beginning-of-line >/dev/null 2>&1
-bindkey `tput kend` end-of-line >/dev/null 2>&1
-bindkey `tput kich1` quoted-insert >/dev/null 2>&1
-bindkey `tput kdch1` delete-char >/dev/null 2>&1
-bindkey `tput kpp` up-history >/dev/null 2>&1
-bindkey `tput knp` end-of-history >/dev/null 2>&1
-bindkey `tput kcuu1` history-beginning-search-backward >/dev/null 2>&1
-bindkey `tput kcud1` history-beginning-search-forward >/dev/null 2>&1
+bindkey $terminfo[khome] beginning-of-line >/dev/null 2>&1
+bindkey $terminfo[kend] end-of-line >/dev/null 2>&1
+bindkey $terminfo[kich1] quoted-insert >/dev/null 2>&1
+bindkey $terminfo[kdch1] delete-char >/dev/null 2>&1
+bindkey $terminfo[kpp] up-history >/dev/null 2>&1
+bindkey $terminfo[knp] end-of-history >/dev/null 2>&1
+bindkey $terminfo[kcuu1] history-beginning-search-backward >/dev/null 2>&1
+bindkey $terminfo[kcud1] history-beginning-search-forward >/dev/null 2>&1
PS1='[%n@%m %~]%(!.#.%\$) '