一、item2配置:https://www.jianshu.com/p/9c3439cc3bdb/
1、下载item2:https://www.iterm2.com/
,安装完成,chsh -s /bin/zsh 修改默认schell
2、安装Oh my zsh:可以安装各种插件和主题,改变终端配置:https://zhuanlan.zhihu.com/p/350319074
3、安装PowerLine:提供vim和其他应用:zsh,bash等\ 的状态线插件,例如字体,高亮插件
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、可选择、命令补全: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安装失败: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
清除当前行:ctrl + u
到行首:ctrl + a
到行尾:ctrl + e
删除光标之前的单词:ctrl + w
删除到文本末尾:ctrl + k
清屏2:ctrl + l
输入打头几个字母,然后输入command+; iterm2将自动列出之前输入过的类似命令。
https://www.jianshu.com/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