安裝Homebrew

1
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

更新Homebrew

1
brew update

安裝wget

1
brew install wget

安裝zsh

1
brew install zsh

更新zsh

1
brew upgrade zsh

修改預設shell為zsh

1
$ chsh -s /usr/local/bin/zsh

安裝oh-my-zsh

1
$ git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

安裝zsh-completions

1
brew install zsh-completions

新增設定 (我習慣用nano開…很多範例都用vim 也是可以XD)

nano .zshrc
1
2
# zsh-completions
fpath=(/usr/local/share/zsh-completions $fpath)

rebuild zsh 的 .zcompdump

1
$ rm -f ~/.zcompdump; compinit

切換zsh theme

1
ZSH_THEME="THEME NAME"

安裝zsh-syntax-highlighting程式碼高亮

1
brew install zsh-syntax-highlighting

安裝iTerm2

1
brew cask install iterm2

大专栏  設定MacOS 終端機環境 (Homebrew/zsh/oh-my-zsh/iTerm2)href="#修改iTerm2" class="headerlink" title="修改iTerm2">修改iTerm2

安裝iTerm2配色包

1
git clone https://github.com/mbadolato/iTerm2-Color-Schemes.git ~/iTermTheme

https://medium.com/statementdog-engineering/prettify-your-zsh-command-line-prompt-3ca2acc967f

更新Node.js

看版本

1
2
node -v
npm -v

清除cache

1
sudo npm cache clean -f

安裝工具

1
sudo npm install -g n

選擇版本安裝

1
sudo n latest
1
sudo n stable
1
sudo n 8.9.0

刪除某一版的nodejs

1
sudo n rm 9.0.0

更新npm

1
sudo npm install npm@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

https://github.com/marszall87/nodeys-zsh-theme

設定MacOS 終端機環境 (Homebrew/zsh/oh-my-zsh/iTerm2)的更多相关文章

  1. 免安裝、免設定的 Hadoop 開發環境 - cloudera 的 QuickStart VM

    cloudera 的 QuickStart VM,為一種免安裝.免設定 Linux 及 Hadoop,已幫你建好 CDH 5.x.Hadoop.Eclipse 的一個虛擬機環境.下載後解壓縮,可直接以 ...

  2. Django--虛擬環境Virtualenv的安裝使用

    Django--虛擬環境Virtualenv的安裝使用 本次隨筆只要記錄在windows下安裝virtualenvwrapper,以及簡單的使用命令. virtualenvwrapper的安裝     ...

  3. 在 Windows 環境下利用 VNC 遠端控管 Mac OS X Server

    Mac OS Server 可以使用 VNC 來遠端控管.不過,在 Mac 上打開這個功能很簡單,要讓 Windows 的 VNC Viewer 連上卻很難,原來是有原因的. 首先我們來看怎麼在 Ma ...

  4. Gazebo機器人仿真學習探索筆記(五)環境模型

    環境模型構建可以通過向其中添加模型實現,待之後補充,比較有趣的是建築物模型, 可以編輯多層樓層和房間,加入樓梯,窗戶和牆壁等,具體可以參考附錄,等有空再補充. 起伏地形環境構建可以參考之前內容:在Ga ...

  5. 安裝 Rails 開發環境

    安裝 Rails 開發環境 Give someone a program, you frustrate them for a day; teach them how to program, you f ...

  6. ASP.NET MVC 4 部署到 Windows Azure 如何轉換時區設定

    由於公司慢慢地開始將新的專案都移往 Windows Azure 雲端平台做網站代管,漸漸地也開始遇到一些小問題,這些問題在還沒上雲端之前通常不會發生,像我們這次遇到的問題就跟顯示時間有關.由於 Win ...

  7. Windows的免費hMailServer搭配SpamAssassin過濾垃圾郵件:安裝與設定

    http://jdev.tw/blog/1677/hmailserver-with-spamassassin-sawin32 為了解決垃圾信泛濫的狀況,這兩天「跨界」測試了運行在Windows上的免費 ...

  8. ASP.NET MVC + MySQL で開発環境構築

    from:http://qiita.com/midori44/items/ef7cdd1d37c353e44b5f ASP.NET MVC & EntityFramework によるコードファ ...

  9. Step by Step 設定 TFS 2012 Create Team Project 權限 - 避免 TF218017、TF250044

    基本上權限的設定和 以往的 TFS 沒有什麼太大的差別 只是這次的權限設定畫面有略作些調整,我還是一併整理一下 當我們用 TFSSetup 的帳號安裝完 TFS 2012 後 想要在自已的電腦上用自已 ...

随机推荐

  1. swift bannerview 广告轮播图

    class BannerView: UIView,UIScrollViewDelegate{ //图⽚⽔平放置到scrollView上 private var scrollView:UIScrollV ...

  2. UVa202

    刚刚开始写的适合感觉是转换成字符然后开始遍历一遍,后面发现各种不行,就回去看了看题目,重新构思,写了好久还是WA,最后只能看下大神的操作(我太菜了). 先简单梳理下题目意思:首先给出两个数,然后这两个 ...

  3. Debian8.8下的VIM的配置文件

    传动们:http://blog.csdn.net/gatieme/article/details/43883261?spm=5176.100239.blogcont47532.3.yXiEuB 感觉挺 ...

  4. k8s miniKube 入门

    k8s miniKube 入门 miniKube 是单机版kubernetes, 可以配置运行在同一台主机上的服务和pod,并使用docker作为虚拟化工具 下载:直接下载可执行文件,复制到path ...

  5. NOIP 2004 T3 合唱队形(DP、最长上升/下降子序列)

    链接:https://ac.nowcoder.com/acm/contest/1082/C来源:牛客网 题目描述 N位同学站成一排,音乐老师要请其中的(N-K)位同学出列,使得剩下的K位同学排成合唱队 ...

  6. 吴裕雄--天生自然C语言开发:函数指针

    #include <stdio.h> int max(int x, int y) { return x > y ? x : y; } int main(void) { /* p 是函 ...

  7. Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionExcep linux下mysql修改连接超时wait_timeout修改后就ok了

    Linux下mysql修改连接超时wait_timeout 1,首先: show variables like '%timeout%': 显示结果: +------------------------ ...

  8. 项目部署篇之三——安装tomcat7.0

    1.下载tomcat 百度云下载 链接:https://pan.baidu.com/s/1UGPYHmR-1ehQRvdKGhSlyQ 提取码:3c0g 直接通过指令下载 wget http://mi ...

  9. 对kotlin和java中的synchronized的浅谈

    synchronized在java中是一个关键字,但是在kotlin中是一个内联函数.假如分别在java和kotlin代码锁住同一个对象,会发生什么呢,今天写了代码试了试.首先定义people类 12 ...

  10. centos xshell wireshark

    centos安装wireshark yum install wireshark yum install wireshark-gnome 本地windows安装Xming Xming X Server ...