我在~/.zshrc
以下别名:Zsh:智能自动完成功能?
~ which pulseaudio-restart
pulseaudio-restart: aliased to killall pulseaudio && pulseaudio --start
是否有可能在某种程度上配置岩组击键restart
将输出我pulseaudio-restart
的建议,因为它包含字符串restart
?
目前,打字restart
只带来了:
~ rest
restart restore-trash
你为什么不把别名命名为restart-pulseaudio?由于您正在使用制表符完成,因此不会出现别名的确切名称。 – chepner
好点。但是,对于我来说,记住'pulseaudio-restart'会更容易,因为我知道我正在寻找与'pulseaudio'相关的命令。 – orschiro