在Linux Bash通过上下键快速查找历史命令

# vim ~/.bashrc
if [[ $- == *i* ]]
then
    bind '"\e[A": history-search-backward'
    bind '"\e[B": history-search-forward'
fi
posted @ 2019-02-26 11:19  苏方木  阅读(1140)  评论(0编辑  收藏  举报