Install Homebrew
1 |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
Homebrew Update
1 |
brew update |
Install wget
1 |
brew install wget |
Install zsh
1 |
brew install zsh |
Update zsh
1 |
brew upgrade zsh |
Modify the default shell to zsh
1 |
$ chsh -s /usr/local/bin/zsh |
Installation oh-my-zsh
1 |
$ git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh |
Install zsh-completions
1 |
brew install zsh-completions |
New set (I used to open with a nano ... many examples are also possible with XD vim)
nano .zshrc
1 |
# zsh-completions |
The rebuild zsh .zcompdump
1 |
$ rm -f ~/.zcompdump; compinit |
Switching zsh theme
1 |
ZSH_THEME="THEME NAME" |
Installation zsh-syntax-highlighting code highlighting
1 |
brew install zsh-syntax-highlighting |
Installation iTerm2
1 |
brew cask install iterm2 |
Large column settings MacOS terminal environment (the Homebrew / zsh / OH-My-zsh / iTerm2) the href = "# Modify iTerm2" class = "headerlink" title = " Modify iTerm2"> Modify iTerm2
Installation iTerm2 color package
1 |
git clone https://github.com/mbadolato/iTerm2-Color-Schemes.git ~/iTermTheme |
https://medium.com/statementdog-engineering/prettify-your-zsh-command-line-prompt-3ca2acc967f
Updated Node.js
Look version
1 |
-V Node |
Clear cache
1 |
sudo npm cache clean -f |
Installation Tools
1 |
sudo npm install -g n |
Select the version installed
1 |
sudo n latest |
1 |
sudo n stable |
1 |
8.9.0 Sudo n |
Delete a version of nodejs
1 |
9.0.0 Sudo rm n |
Update npm
1 |
sudo install altitude above sea level @ latest -g |
Reference
Homebrew
https://brew.sh/index_zh-tw.html
Zsh
https://github.com/unixorn/awesome-zsh-plugins
http://icarus4.logdown.com/posts/177661-from-bash-to-zsh-setup-tips
https://pjchender.blogspot.tw/2017/02/mac-terminal-iterm-2-oh-my-zsh.html
http://xanxusvervr.blogspot.tw/2017/06/mac.html
Zsh Theme