值得切换成zsh随便使用? [英] Worth switching to zsh for casual use?
问题描述
在Mac OS X中,默认外壳为庆典
,这我很高兴一般使用是。我只是想当然。这将是非常好的,如果选择自动完成的更多的东西的,不过,我在这方面听过的zsh
的好东西。但我真的没有倾斜花时间摆弄与设置由一个很小的量来提高我的命令行使用,因为我在命令行中的生活是没有那么糟糕。
The default shell in Mac OS X is bash
, which I'm generally happy to be using. I just take it for granted. It would be really nice if it auto-completed more stuff, though, and I've heard good things about zsh
in this regard. But I don't really have the inclination to spend hours fiddling with settings to improve my command line usage by a tiny amount, since my life on the command line isn't that bad.
(据我了解,庆典
也可以被配置为自动完成更巧妙。这是我不是所有上敏锐的配置。)
(As I understand it, bash
can also be configured to auto-complete more cleverly. It's the configuring I'm not all that keen on.)
在切换到的zsh
,甚至在少数情况下,使我的生活更容易吗?或者它只是一个更好的外壳,如果你花时间去学习的为什么的它的更好? (例如将是很好,太:)
)
Will switching to zsh
, even in a small number cases, make my life easier? Or is it only a better shell if you put in the time to learn why it's better? (Examples would be nice, too :)
)
罗德尼·阿马托
&安培;
@ 火神伊格
给出两个理由分别固守庆典
并切换到的zsh
。看来我得既调查!哦:)
@Rodney Amato
&
@Vulcan Eager
give two good reasons to respectively stick to bash
and switch to zsh
. Looks like I'll have to investigate both! Oh well :)
是否有任何人与争论的双方?
Is there anyone with an opinion from both sides of the argument?
推荐答案
有关随便使用你最好还是不要使用bash坚持,只是安装bash补全。
For casual use you are probably better off sticking with bash and just installing bash completion.
安装是pretty容易,抓住从<一个与bash完成-20060301.tar.gz href=\"http://www.caliban.org/bash/index.shtml#completion\">http://www.caliban.org/bash/index.shtml#completion并提取它
Installing it is pretty easy, grab the bash-completion-20060301.tar.gz from http://www.caliban.org/bash/index.shtml#completion and extract it with
tar -xzvf bash-completion-20060301.tar.gz
那么bash_completion / bash_completion文件到/ etc与
then copy the bash_completion/bash_completion file to /etc with
sudo cp bash_completion/bash_completion /etc
这会提示你输入密码。你可能会想使一个/etc/bash_completion.d目录的任何额外完成的脚本(比如我在那里GIT中完成脚本)。
which will prompt you for your password. You probably will want to make a /etc/bash_completion.d directory for any additional completion scripts (for instance I have the git completion script in there).
一旦这样做的最后一步是确保.bash_profile文件在你的home目录下有
Once this is done the last step is to make sure the .bash_profile file in your home directory has
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
在当你登录到加载完成文件。
in it to load the completion file when you login.
要测试它只是打开一个新的终端,并尝试完成对CVS和它应该告诉你在补全列表CVS的选项。
To test it just open a new terminal, and try completing on cvs and it should show you the cvs options in the list of completions.
这篇关于值得切换成zsh随便使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!