ZSH - 关于zsh的一些有趣的东西
文章目录
http://zsh.sourceforge.net/Intro/intro_16.html
zsh options . 不知道需不需要梯子。
摘抄三份代码,分别是省略cd直接进入目录,更正,以及给目录起别名。
zsh% cd / % setopt autocd % bin % pwd /bin % ../etc % pwd /etc % setopt cdablevars % foo=/tmp % cd foo /tmp % setopt correct % sl zsh: correct `sl' to `ls' [nyae]? y % setopt correctall % ls x.v11r4 zsh: correct `x.v11r4' to `X.V11R4' [nyae]? n /usr/princton/src/x.v11r4 not found % ls /etc/paswd zsh: correct to `/etc/paswd' to `/etc/passwd' [nyae]? y /etc/passwd
当然,如果安装了Oh-my-zsh -- 这个在github上极大方便使用SHELL的东西,再好不过了。
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论