/simple-shell

简单的 Mac 开发 shell 配置

Apache License 2.0Apache-2.0

安装 homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

安装 iTerm2

brew install iterm2

安装 zsh

brew install zsh

安装 Oh My Zsh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

安装 fzf

brew install fzf
$(brew --prefix)/opt/fzf/install

安装thefuck

brew install thefuck

安装 tmux

brew install tmux
cd ~ && git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .

编辑 ~/.zshrc

source ~/.profile
export ZSH=~/.oh-my-zsh
ZSH_THEME="zhann"
source $ZSH/oh-my-zsh.sh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

编辑 ~/.profile

export LANG=en_US.UTF-8

export PATH=/usr/local/bin
export PATH=$PATH:/usr/bin:/usr/sbin
export PATH=$PATH:/bin
export PATH=$PATH:/sbin
export PATH=$PATH:/usr/local/sbin
export PATH=$PATH:/usr/X11/bin

# PS COLOR
export CLICOLOR=1
export LSCOLORS=gxfxcxdxbxegedabagacad
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$'
export TERM=screen-256color-bce


alias tmux="tmux -2"
alias W="tmux -2 attach || tmux"

# fuck
eval $(thefuck --alias)

# other env

iTerm2 导入配置文件 Default.json

解决中文乱码 安装字体 PowerlineSymbols.otf

tmux自定义配置 .tmux.conf.local