如果使用mac 开发的话,推荐好用的shell组合 oh-my-zsh 和 autojump 的好用组合
安装准备:(以下安装最好在vpn环境下,否则有些网站打不开 或者超慢)
1、安装git
http://git-scm.com/download/ 下载mac 系统的git安装包
Git via Git
If you already have Git installed, you can get the latest development version via Git itself:
git clone https://github.com/git/git
2、安装oh-my-zsh
http://ohmyz.sh
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
3、安装autojump
brew install autojump 不知道这个 看一下这篇博客--》 mac下安装homebrew
安装完autojump后 执行下面的命令
[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh
cd 过一次的目录 下次都可以直接跳转
命令为 j 目录名(目录名匹配)
比如:
重现打开一个shell窗口输入 j sdk 可以直接跳转到sdk目录
4、将zsh设置成默认的shell
chsh -s /bin/zsh
5、重新打开shell 就可以了