item2+oh-my-zsh
item2:
- 同tab多窗口
- 垂直排列 command + d
- 水平排列 command + shift + d
- 窗口间切换 command + [ (])
- 关闭当前窗口 command + w
oh-my-zsh
1 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
- zshrc
- ZSH_THEME=”avit”
- plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
zsh-syntax-highlighting安装
1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
zsh-autosuggestions安装
1
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
1 | source ~/.zshrc |
当item2的主题是Solarized Dark时,会覆盖zsh-autosuggestions的提示字体,造成显示不了的情况1
2
3
4▶ vim ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
: ${ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=2'}
把fg的颜色从8改为其他颜色,只支持8种颜色,可参考zsh-autosuggestions文档
鼠标控制
mac外接键盘无法用到触控板,外接鼠标的话,方向逻辑相反,Mos很好解决了这个问题,而且可以控制鼠标的滚轮爽如触控板.
鼠标箭头多屏幕切换
在多屏幕工作时,经常要用手来操作鼠标箭头到另外一个屏幕,现用软件可实现快捷键切换到其他屏幕
先安装Hammerspoon
open config
1 | -- Set hyper to cmd |
此处将cmd定义为hyper,然后定义hyper+`为切换鼠标箭头到其他屏幕,也可自定义为其他快捷键
窗口布局
- 移动窗口到到另外一个屏幕 ⌃⌥⌘→
其他具体操作可参考文档