centos 历史命令模糊匹配

参考文章

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

 

posted @ 2023-11-29 15:05  先娶国王后取经  阅读(19)  评论(0编辑  收藏  举报