Z Shell (zsh) 的特色與安裝
此篇文章最近更新時間為2010-01-26 02:07:22
目前共有2篇留言
相關標籤:
D-Link 友訊科技工程師。喜好戶外運動、2008 年 5 月完成「跑步環島」。對於新技術跟程式碼有著強烈的偏執狂。
看到 vgod 大大的噗浪才知道:除了大家常用的 Bourne Again Shell (bash) 外,還有一個更好用的叫 Z Shell (zsh)。你可以先看看 zsh 的特色再決定是否要把你原來的 Shell 更換為 zsh。
vgod 推薦了這篇文章:zsh: The last shell you’ll ever need!,大致介紹了 zsh 有哪些優點:
$ aptget
zsh: correct 'aptget' to 'apt-get' [nyae]?


% ls run<200-300>
run234 run240
% ls (foo|bar).*
bar.o foo.c foo.o
% ls -d *.^c
.rhosts bar.o file.h file.pro foo.o main.h main.o
% ls **/f*
file.h foo foo.o stuff/xxx/foobar
file.pro foo.c stuff/file stuff/yyy/frobar
% ls *.c
foo.c foob.c bar.c
% ls *.c~bar.c個人覺得工作效率與品質的增加就是要從小地方、小流程開始改善起。看了 zsh 的特點以後,覺得應該可以有所幫助就來安裝啦,其實超簡單的。
$ sudo yum install zsh$ sudo apt-get install zsh$ curl http://stuff.mit.edu/~jdong/misc/zshrc > ~/.zshrc$ curl http://stuff.mit.edu/~jdong/misc/zshrc-osx-blackonwhite > ~/.zshrc$cd /usr/ports/shells/zsh
sudo make install
$ chsh -l
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/ksh
/bin/zshchsh -s /bin/zshThat's all! 你可以開始使用 Z Shell 囉!更多資訊就請看官方網站啦。