cat << EOF >> /etc/profile.d/bash_history.sh
if [ -t 1 ];then
bind '"\x1b\x5b\x41":history-search-backward'
bind '"\x1b\x5b\x42":history-search-forward'
fi
EOF
重新开一个终端或重启
cat << EOF >> /etc/profile.d/bash_history.sh
if [ -t 1 ];then
bind '"\x1b\x5b\x41":history-search-backward'
bind '"\x1b\x5b\x42":history-search-forward'
fi
EOF
重新开一个终端或重启