$sudo port install bash-completion
# bash-completion
if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
. /opt/local/etc/profile.d/bash_completion.sh
fi
fdhuang@phodal:~ $ ls
ls lsbom lsock lsockU lsvfs
lsappinfo lsm lsockT lsof
fdhuang@phodal:~ $ ls
不过一种更理想的方式就是使用zsh
围观我的Github Idea墙, 也许,你会遇到心仪的项目