iTerm2 + Oh My Zsh

iTerm2
http://iterm2.com/downloads.html
https://iterm2.com/downloads/stable/iTerm2-2_1_4.zip


Oh My Zsh
http://ohmyz.sh sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" Homebrew http://brew.sh/index.html ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ack brew install ack ------ 安装: 1) 下载最新的iTerm2,将iTerm.app复制到“应用程序”目录(以后用它来代替Terminal使用) 2) 打开iTerm,用前面的命令安装“Oh My Zsh”(为bash增加色彩、alias、git分支显示等好用的功能) 3) 用前面的命令安装“Homebrew”(OSX工具包管理,用它安装wget、ack等命令) 4) 用前面的命令安装ack(类似grep的指令,利用了强大的Perl正则表达式) 配置: 在iTerm中按⌘,打开配置窗口,进行如下配置: 1) 选择Profiles页 在General标签下面选择:Command为Login Shell、Working Directory为Reuse previous session's directory 在Text标签下的Regular Font和Non-ASCII Font可点击Change Font按钮,更改为Menlo常规11pt或12pt的字体 2) 选择Keys页 勾选下面Hotkey部分并将热键改为 ⌘\ 勾选下面Hotkey googles a dedicated window with profile,会创建一个名为“Hotkey Window”的配置,确认即可 使用: 1) 启动 iTerm 后,可以按 ⌘\ 来打开关闭 iTerm 顶层窗口了,非常方便 2) 按 ⌘d 可以将 iTerm 分割为水平并列的窗口;按 ⌘⇧d 会分割为垂直排列的窗口 3) 按 tab 快速切换补全,按 ⌘; 可显示自动完成窗口 4) 鼠标选中的内容会自动复制到剪贴板,按 ⌘⇧h 会显示剪贴板列表 5) 按 ⌘f 可高亮搜索内容;按 ⌘⌥e 可搜索所有Tab 6) 按 ⌘Enter 切换窗口/全屏显示 7) 保存快照:Window > Save Window Arrangement 恢复快照:Window > Restore Window Arrangement 自动恢复快照:Preferences > General > Open saved window arrangement 8) 用 alias 命令查看所有的别名

 

posted @ 2015-11-06 09:54  Bob-wei  阅读(840)  评论(0编辑  收藏  举报