终端增强技术

虽然linux的终端功能强大,但如果你说它好用,那我就只能呵呵了,
接下来,说一下使终端好用一点的方法,

sudo apt install command-not-found

这样命令行执行不了,就知道该安装那个软件包了
bash 调教

  1. 在~/.bashrc中写入
#忽略写入历史重复命令  
export HISTCONTROL=ignoredups
#上下健选择历史输入
 bind '"\e[A": history-search-backward'
 bind '"\e[B": history-search-forward'
  1. 在~/.inputrc中写入
# Bash中自动补全时忽略大小写 
set completion-ignore-case on
# tab 键双击变单击
set show-all-if-ambiguous on
# 自动选择tab补全结果
TAB: menu-complete