Mac下配置iterm2和oh-my-zsh
安装oh-my-zsh
安装oh-my-zsh,参照官网方法:
curl -L http://install.ohmyz.sh | sh
或者:
wget --no-check-certificate http://install.ohmyz.sh -O - | sh
按照https://raw.githubusercontent.com/tofishes/iterm2-zsh/master/_zshrc文件内容来配置zsh:
vi ~/.zshrc
参照上述链接内容来做修改,主题用nebirhos
iterm2
1.iTerm2
1> 配色博客: http://blog.csdn.net/qdujunjie/article/details/39315813
2> 常用快捷键
⌘ + 数字 在各tab标签直接来回切换
⌘ + f 搜索
⌘ + r 相当于clear
输入开头命令后 按⌘ + ;会自动列出输入过的命令
ctrl + u 清空当前行
3> ~/.bash_profile的配置
#enables colorin the terminal bash shell export
export CLICOLOR=1
#sets up thecolor scheme for list export
export LSCOLORS=gxfxcxdxbxegedabagacad
#sets up theprompt color (currently a green similar to linux terminal)
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
#enables colorfor iTerm
export TERM=xterm-256color
附件(配置摘要)
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# export ZSH_THEME="nebirhos"
export ZSH_THEME="tofishes"
DEFAULT_USER="cc"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want disable red dots displayed while waiting for completion
# DISABLE_COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=/Users/km/bin:/usr/local/bin:/usr/local/mongodb/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
#export PATH=/usr/local/mongodb/bin:$PATH
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export CLICOLOR=1
export LSCOLORS=gxfxaxdxcxegedabagacad