autocomplete
autocomplete
PHODAL

查看标签 autocomplete

这里需要安装bash-completion

$sudo port install bash-completion

添加到.bash_profile

bash-completion

if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then . /opt/local/etc/profile.d/bash_completion.sh fi

大致效果如下,以ls加tab键为例

fdhuang@phodal:~ $ ls ls lsbom lsock lsockU lsvfs lsappinfo lsm lsockT lsof fdhuang@phodal:~ $ ls

不过一种更理想的方式就是使用zsh

Feeds

RSS / Atom

最近文章

存档

2026 (2 个月)
2025 (12 个月)
2024 (12 个月)
2023 (12 个月)
2022 (12 个月)
2021 (12 个月)
2020 (12 个月)
2019 (12 个月)
2018 (12 个月)
2017 (12 个月)
2016 (12 个月)
2015 (12 个月)
2014 (12 个月)
2013 (9 个月)
2012 (3 个月)
2011 (1 月)
2010 (1 月)
1991 (1 月)

分类

标签

作者