Giter Club home page Giter Club logo

common-setting's Introduction

common-setting

common setting for new Mac

webStorm config won't work if directly download config zip file. should download by git clone

common step

  1. install iTerm2 | WebStorm
  2. install ohmyzsh & config it
  3. install homebrew && 修改源
  4. install git brew install git
  5. install nvm (npx nrm use taobao)
  6. import WebStorm setting
  7. 修改yarn源:yarn config set registry https://registry.npm.taobao.org/

vim setting

cp /usr/share/vim/vimrc ~/.vimrc	#复制 vim 配置模版
echo 'syntax on' >> ~/.vimrc	#开启语法高亮
echo 'set nu!' >> ~/.vimrc	#开启行号显示

Oh My Zsh Config

config

  1. ls ~/.oh-my-zsh/plugins/
  2. 安装插件:git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  3. git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  4. vim ~/.zshrc
  5. /plugins
  6. plugins=(git z zsh-syntax-highlighting zsh-autosuggestions)
  7. source ~/.zshrc
  8. 让插件颜色正常
echo "export TERM=xterm-256color" >> ~/.zshrc	#声明终端类型
echo "ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10'" >> ~/.zshrc	#设置建议命令的文字颜色

Homebrew (修改源)

安装满试试这个:
/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

git alias (if use bash)

cd ~
git clone this repo
cp -rp common-setting/.gitconfig ./

// test
cd a git directory and input: `git st`

Others:

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

common-setting's People

Contributors

wuxiaoxiong avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.