Remove Ubuntu 12.04 hack.

This commit is contained in:
Gea-Suan Lin
2022-03-30 10:46:52 +08:00
parent 4c97b59b69
commit f9eb12bbd1

7
.zshrc
View File

@@ -80,14 +80,9 @@ key[PageDown]=${terminfo[knp]}
key[PageUp]=${terminfo[kpp]} key[PageUp]=${terminfo[kpp]}
key[Up]=${terminfo[kcuu1]} key[Up]=${terminfo[kcuu1]}
# #
# Terminal hack (keyup/keydown) for Ubuntu 12.04 & FreeBSD # Terminal hack (keyup/keydown) for FreeBSD
if [[ -f /etc/lsb-release ]]; then if [[ -f /etc/lsb-release ]]; then
source /etc/lsb-release source /etc/lsb-release
if [[ "$DISTRIB_RELEASE" == "12.04" ]]; then
key[Down]=""
key[Up]=""
fi
elif [[ "`uname -s`" == "FreeBSD" ]]; then elif [[ "`uname -s`" == "FreeBSD" ]]; then
key[Down]="" key[Down]=""
key[Up]="" key[Up]=""