VPS环境初始
- 月下叹逍遥
- 论坛版主
- 帖子: 33994
- 注册时间: 2010-10-07 14:23
- 系统: Archdows10
- 来自: 某系某星某洲某国某省某市
- 联系:
- 潇洒走一回
- 帖子: 735
- 注册时间: 2009-05-20 21:43
Re: VPS环境初始
SSH登录后输入反应迟钝, bash-completion 更加成了利器.
bash高级补全
安装(Ubuntu)
apt-get install bash-completion python-optcomplete
激活
不同发行版不同版本, 有的或已经安装, 但需要激活.
以 Ubuntu 10.04 为例, 打开 /etc/bash.bashrc, 找到::
#enable bash completion in interactive shells
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi
反注释以上代码(真正的注释除外)
bash高级补全
安装(Ubuntu)
apt-get install bash-completion python-optcomplete
激活
不同发行版不同版本, 有的或已经安装, 但需要激活.
以 Ubuntu 10.04 为例, 打开 /etc/bash.bashrc, 找到::
#enable bash completion in interactive shells
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi
反注释以上代码(真正的注释除外)