Mac下配置iterm2和oh-my-zsh

Mac下配置iterm2和oh-my-zsh


安装oh-my-zsh

  1. 安装oh-my-zsh,参照官网方法:

    curl -L http://install.ohmyz.sh | sh

    或者:

    wget --no-check-certificate http://install.ohmyz.sh -O - | sh

  2. 按照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
参考博客:http://cssor.com/mac-osx-config-theme-for-iterm2-oh-my-zsh.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值