装了好像很多命令都可以用补齐了,比如 git
1赞
zsh 的话好像都是补全脚本和 shell 本身一同发布的呢。
PS: zsh 的很多命令补全(比如 git),会有简略的说明信息哦:
>>> git stash 23:31
-- command --
apply -- apply the changes recorded in the stash
branch -- branch off at the commit at which the stash was originally created
clear -- remove all the stashed states
create -- create a stash without storing it in the ref namespace
drop -- remove a single stashed state from the stash list
list -- list the stashes that you currently have
pop -- remove and apply a single stashed state from the stash list
save -- save your local modifications to a new stash
show -- show the changes recorded in the stash as a diff
要是 openSUSE 默认搭载 bash-completion 就好了。我记得 Ubuntu 默认有的。
不过也有个副作用,在 make 的时候,bash-completion 甚至可以探测 makefile 来补全。如果编译 linux kernel,按 Tab 补全会有点卡顿。
试下 zsh+oh-my-zsh 吧~
我觉得那个还好啦。
zsh 补全 adb 时才叫烦呢,调用 adb 的时候如果 server 没起来的话就会跑起来,但是权限又不够……然后,adb push / pull 的补全一直卡着不动……
不知道 bash 有不。
mark 一个