分页: 2 / 2

Re: VPS环境初始

发表于 : 2011-08-21 9:39
月下叹逍遥
LAMP…… :em11

Re: VPS环境初始

发表于 : 2011-08-21 10:12
潇洒走一回
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

反注释以上代码(真正的注释除外)