用了一陣子,挺滿意的。
今天就來記錄一下怎麼安裝吧。
首先安裝好 ZSH
SUSE : zypper in zsh
MAC : 忘了,好像本身就有,沒有就去找來裝吧。
裝好後,工作環境就改成 zsh 吧。
chsh -s /bin/zsh
這樣子ZSH 就搞定了。
但為了要畫面美觀,用起來爽度好,就要再裝 oh-my-zsh
有很多樣板:見 https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
安裝方式:見 https://github.com/robbyrussell/oh-my-zsh 下方
Setup
oh-my-zsh should work with any recent release of zsh, the minimum recommended version is 4.3.9.
The automatic installer… (do you trust me?)
You can install this via the command line with either `curl` or `wget`.
via `curl`
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
via `wget`
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
The manual way
1. Clone the repository
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
2. OPTIONAL Backup your existing ~/.zshrc file
cp ~/.zshrc ~/.zshrc.orig
3. Create a new zsh config by copying the zsh template we’ve provided.
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
4. Set zsh as your default shell:
chsh -s /bin/zsh
5. Start / restart zsh (open a new terminal is easy enough…)
oh-my-zsh should work with any recent release of zsh, the minimum recommended version is 4.3.9.
The automatic installer… (do you trust me?)
You can install this via the command line with either `curl` or `wget`.
via `curl`
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
via `wget`
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
The manual way
1. Clone the repository
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
2. OPTIONAL Backup your existing ~/.zshrc file
cp ~/.zshrc ~/.zshrc.orig
3. Create a new zsh config by copying the zsh template we’ve provided.
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
4. Set zsh as your default shell:
chsh -s /bin/zsh
5. Start / restart zsh (open a new terminal is easy enough…)
我是用手動安裝的方式。
但我第一步,是直接去下載 https://github.com/robbyrussell/oh-my-zsh/archive/master.zip
然後再照著後面的步驟做,因為我沒裝 git,裝了也用不到,所以就沒裝了。
0 comments:
張貼留言