辅助
自动完成指令 Bash auto completion
安装
sudo apt update
sudo apt install bash-completion
测试
cat /etc/profile.d/bash_completion.sh
载入
## source it from ~/.bashrc or ~/.bash_profile ##
echo "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc
## Another example Check and load it from ~/.bashrc or ~/.bash_profile ##
grep -wq '^source /etc/profile.d/bash_completion.sh' ~/.bashrc || echo 'source /etc/profile.d/bash_completion.sh'>>~/.bashrc
source /etc/profile.d/bash_completion.sh
变更 Bash
找出目前 shell
echo $SHELL
变更 shell
chsh -s /bin/bash
chsh -s /bin/zsh