-->

2013-08-16

memo: bash-completion

http://forums.gentoo.org/viewtopic-t-898628-start-0.html
http://d.hatena.ne.jp/pcmaster/20101021/p1

sudo emerge --oneshot -avt app-shells/bash-completion

sudo eselect bashcomp enable --global gentoo
sudo eselect bashcomp enable --global ssh
#sudo eselect bashcomp enable --global base

$ ssh bash: _known_hosts_real: コマンドが見つかりません
bash: _known_hosts_real: コマンドが見つかりません

sudo eselect bashcomp enable --global base

$ ll /etc/bash_completion.d/
合計 0
lrwxrwxrwx 1 root root 36 2013-08-16 23:34:38 base -> ../../usr/share/bash-completion/base
lrwxrwxrwx 1 root root 38 2013-08-16 23:24:29 gentoo -> ../../usr/share/bash-completion/gentoo
lrwxrwxrwx 1 root root 35 2013-08-16 23:33:00 ssh -> ../../usr/share/bash-completion/ssh

$ grep -iP "^\s*have\s+\w+\s+\&\&" /etc/bash_completion.d/* | perl -pe 's/^.*:have (\w+).*$/$1/' | while read cmd; do which $cmd 2>/dev/null; if [ $? -ne 0 ]; then echo "### "$cmd; fi; done
/usr/bin/emerge
/usr/bin/ebuild
/sbin/rc
/usr/bin/equery
/usr/bin/epkginfo
### ekeyword
/usr/bin/portageq
### splat
/usr/bin/euse
### epm
### metagen
/usr/bin/ssh

0 件のコメント: