LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 909|回复: 3

关于命令行自动补全的问题

[复制链接]
发表于 2006-6-4 00:39:38 | 显示全部楼层 |阅读模式
命令都是可以自动补全的
但是如果后面的参数就不会自动补全了
比如adsl拨号,pon dsl-provider 后面的 dsl-provider 要全部自己输入进去才行,tab键没有

还有apt-get 安装程序 有些程序包的名字不知道 ,那不是很麻烦了
发表于 2006-6-4 05:00:28 | 显示全部楼层
you can install custom tab completion support, but I have no clue what are the package names under debian

under gentoo:
http://packages.gentoo.org/search/?sstring=completion
回复 支持 反对

使用道具 举报

发表于 2006-6-4 08:30:05 | 显示全部楼层
un-comment the follow command in your ~.bashrc

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
回复 支持 反对

使用道具 举报

发表于 2006-6-4 09:38:59 | 显示全部楼层
试一试 fish ,是一个很多功能的 shell,完全兼容 bash ,而且有你要的那些补全功能。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表