iTerm2 設(shè)置的彎路
1. 下載iTerm2
2. iTerm2 的配色方案
- iterm2 - preferences - profiles - color Preset進行配色預(yù)設(shè),可以到網(wǎng)上下載喜歡的配色方案
- key的設(shè)置:快捷鍵 option + space
- 寬度設(shè)置
- 背景透明度與模糊度:profiles - window中設(shè)置
3. bash更改配色方案
- 修改 ~/.bash_profile 插入以下內(nèi)容,注意export后面是空格,完成后 source .bash_profile
export CLICOLOR=1
LSCOLORS=gxfxcxdxbxegedabagacad
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$'
export TERM=xterm-color
- 設(shè)置終端 xterm-256color
- ls顯示彩色,注意mac下ls 與Linux下ls是不同的
alias ls ='ls-G' # OS X
alias ls = 'ls --color= atuo' # Linux
4. on the zsh 方案
- 切換到 zsh, 注意 mac os 系統(tǒng)已經(jīng)有zsh了
chsh -s /bin/zsh # 切換默認shell
5. 奇怪的問題
- 設(shè)置結(jié)束后,每次重啟iterm2,都會彈出“can't load xxxx”的錯誤
- 排查的問題:Preferences - General - 最下面有一個Preferences ,之前打勾了 “l(fā)oad Preferences from a custom folder or URL”,去掉之后就OK
6. iterm2的使用
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。