一、item2配置:http://m.itdecent.cn/p/9c3439cc3bdb/
1、下載item2:https://www.iterm2.com/
,安裝完成,chsh -s /bin/zsh 修改默認(rèn)schell
2、安裝Oh my zsh:可以安裝各種插件和主題,改變終端配置:https://zhuanlan.zhihu.com/p/350319074
3、安裝PowerLine:提供vim和其他應(yīng)用:zsh,bash等\ 的狀態(tài)線插件,例如字體,高亮插件
Collecting powerline-status
Could not fetch URL https://pypi.python.org/simple/powerline-status/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
// 換成豆瓣的源
pip install powerline-status -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
4、安裝PowerFonts,記得勾選User Ligatres
5、安裝配色方案:solarized
6、安裝主題:agnoster
7、安裝高亮插件:zsh-syntax-highlighting:.zshrc無plugin:https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
8、可選擇、命令補(bǔ)全:zsh-autosuggestion\
問題:
1、Failed to connect to raw.githubusercontent.com port 443
https://blog.csdn.net/qq_42823864/article/details/124587778
2、command not found: pip
2、pip安裝失?。?a target="_blank" rel="nofollow">https://blog.csdn.net/liaowenxiong/article/details/121033839\
3、[oh-my-zsh] Would you like to update? [Y/n]
https://juejin.cn/post/7091125229287637005
https://stackoverflow.com/questions/11378607/oh-my-zsh-disable-would-you-like-to-check-for-updates-prompt
二、技巧:
1、finder打開item2:
下載OpenInTerminal: 安裝介紹
三、快捷鍵
切換全屏:command + enter
垂直分屏:command + d
水平分屏:command + shift + d
查看歷史命令:command + ;
查看剪貼板歷史:command + shift + h
清除當(dāng)前行:ctrl + u
到行首:ctrl + a
到行尾:ctrl + e
刪除光標(biāo)之前的單詞:ctrl + w
刪除到文本末尾:ctrl + k
清屏2:ctrl + l
輸入打頭幾個(gè)字母,然后輸入command+; iterm2將自動(dòng)列出之前輸入過的類似命令。
http://m.itdecent.cn/p/fa6330712623
背景圖片
https://picx.zhimg.com/80/v2-dbd46eeea0330d1017ffa7bbb90cd116_1440w.webp?source=1940ef5c
https://pic1.zhimg.com/80/v2-5520d34b2acfa1e921dad04fd72dabbf_1440w.webp?source=1940ef5c
https://pic1.zhimg.com/80/v2-a34edb87feb14fe345baaa818b842b36_1440w.webp?source=1940ef5c
https://picx.zhimg.com/80/v2-70128881d99d0249d00d7fdc1f96ac8b_1440w.webp?source=1940ef5c
https://pica.zhimg.com/80/v2-5ac33e13c220140c5b6602f23a5b8032_1440w.webp?source=1940ef5c
https://pica.zhimg.com/80/v2-bf96f36d6365a2a1960bf4c0441e627f_1440w.webp?source=1940ef5c