bluebbc

linux bash自动补全

问题:

我的一个工程中,Makefile里面比如有这些目标all,test等;我用ssh登录后,键入make然后双击tab键,却无法补全显示出目标;

 

解决:

1。sudo apt-get install bash-completion

2。修改/etc/bash.bashrc文件,将

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi


前面的#去掉

分类:

技术点:

相关文章:

  • 2021-11-17
  • 2021-11-17
  • 2021-06-30
  • 2022-02-22
  • 2021-11-17
  • 2021-11-17
  • 2022-01-21
  • 2021-11-08
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
相关资源
相似解决方案