早就听说这个终端工具了,可以完全替代terminal。
Solarized, 是目前最完整的 Terminal/Editor/IDE 配色项目,几乎覆盖所有主流操作系统(Mac OS X, Linux, Windows)、编辑器和 IDE(Vim, Emacs, Xcode, TextMate, NetBeans, Visual Studio 等),终端(iTerm2, Terminal.app, Putty 等)。类似的项目还有 Tomorrow Theme。
拿tomorrow-theme举例,下载Tomorrow-Night-Eighties.itermcolors文件,双击自动导入到iTerm2中,在Perferences->Profiles->Colors->Load Presets中可以看到对应的配色。修改即可。
确保Preferences->Profiles->Terminal->Terminal Emulation中的字符编码为UTF-8。
中文乱码的问题需要设置一下locale, 在对于的shell配置文件中,比如bash对应的就是~/.bashrc, zsh对应的就是~/.zshrc, 这里以zsh为例,打开.zshrc文件,修改其中# You may need to manually set your language environment export LANG=en_US.UTF-8:
~/.bashrc
~/.zshrc
# You may need to manually set your language environment export LANG=en_US.UTF-8
接着重启一下终端,或者输入: source ~/.zshrc。
source ~/.zshrc
command+方向键
command+enter
command+f
command+d
command+shift+d
command+[ 或 command +]
command+t
command+w
command+;
command+r
command+p/n
ctrl+r
基本的Emacs移动光标方式。还有一些很好的操作方式,我觉得都可以借鉴配置到SublimeText中。
ctrl+d
ctrl+h
ctrl+u
ctrl+k
ctrl+w
ctrl+t
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8