参考文章
https://blog.csdn.net/evane1890/article/details/112863698
操作步骤
vi ~/.bashrc
if [[ $- == *i* ]]
then
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
fi
// 配置文件生效
source ~/.bashrc
参考文章
https://blog.csdn.net/evane1890/article/details/112863698
操作步骤
vi ~/.bashrc
if [[ $- == *i* ]]
then
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
fi
// 配置文件生效
source ~/.bashrc