common setting for new Mac
webStorm config won't work if directly download config zip file. should download by git clone
- install iTerm2 | WebStorm
- install ohmyzsh & config it
- install homebrew && 修改源
- install git
brew install git
- install nvm (npx nrm use taobao)
- import WebStorm setting
- 修改yarn源:
yarn config set registry https://registry.npm.taobao.org/
cp /usr/share/vim/vimrc ~/.vimrc #复制 vim 配置模版
echo 'syntax on' >> ~/.vimrc #开启语法高亮
echo 'set nu!' >> ~/.vimrc #开启行号显示
ls ~/.oh-my-zsh/plugins/
- 安装插件:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
vim ~/.zshrc
/plugins
plugins=(git z zsh-syntax-highlighting zsh-autosuggestions)
source ~/.zshrc
- 让插件颜色正常
echo "export TERM=xterm-256color" >> ~/.zshrc #声明终端类型
echo "ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10'" >> ~/.zshrc #设置建议命令的文字颜色
安装满试试这个:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
brew install cmatrix
阿里源
# 替换brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
# 替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
# 刷新源
brew update
cd ~
git clone this repo
cp -rp common-setting/.gitconfig ./
// test
cd a git directory and input: `git st`
CentOs Git update: http://www.cnblogs.com/dwj97/p/6439051.html
Bash & Git auto completion https://blog.csdn.net/kun525331194/article/details/54262903
Alfred https://www.jianshu.com/p/e9f3352c785f
Get MFA by Alfred https://github.com/moul/alfred-workflow-gauth
shell auto complete https://www.zhihu.com/question/20620445/answer/1063450249