vim ~/.inputrc 文件内容:

"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on

保存退出后,在重新登录shell会变智能,比如你要连mysql,在shell中输入mysql 再按下UP键,以前的连接mysql命令就出来了,并且忽略大小写。

相关文章:

  • 2021-04-09
  • 2022-01-27
  • 2022-12-23
  • 2021-06-06
  • 2021-12-08
  • 2021-07-16
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-06-01
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案