iTerm2 => Make iTerm2 Default Term前端
iTerm2 => Preferences => Profilesjava
Generalgit
Working Directory => Reuse previous session's directory
複製代碼
Colorgithub
Color Presets... => Solarized Dark
複製代碼
Textvim
Change Font => Meslo LG M Regular for Powerline
(下載地址:https://github.com/powerline/fonts/blob/master/Meslo%20Slashed/Meslo%20LG%20M%20Regular%20for%20Powerline.ttf)
複製代碼
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
複製代碼
brew install zsh
複製代碼
brew install autojump
// zshrc新增
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
// 生效配置
source ~/.zshrc
複製代碼
brew install thefuck
複製代碼
brew install zsh-syntax-highlighting
// 配置.zshrc文件,插入一行。
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
// 生效配置
source ~/.zshrc
複製代碼
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
// 修改zshrc
plugins=(git) => plugins=(zsh-autosuggestions git)
複製代碼
.zshrc文件的變化ruby
export PATH=$HOME/bin:/usr/local/bin:$PATH
source ~/.bash_profile
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
eval $(thefuck --alias)
ZSH_THEME="agnoster"
plugins=(zsh-autosuggestions git)
alias cls='clear'
alias ll='ls -l'
alias la='ls -a'
alias vi='vim'
alias javac="javac -J-Dfile.encoding=utf8"
alias grep="grep --color=auto"
alias -s js=vi
alias -s c=vi
alias -s java=vi
alias -s txt=vi
alias -s gz='tar -xzvf'
alias -s tgz='tar -xzvf'
alias -s zip='unzip'
alias -s bz2='tar -xjvf'
[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh
複製代碼
到這裏就差很少能用了,可是呢,這個常長長的計算機名看着真是不舒服,去掉!!bash