平时使用习惯的一套配置
# HomeBrew
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH=${PATH}:/usr/local/mysql/bin
# HomeBrew END
# nvm
source /usr/local/opt/nvm/nvm.sh
# Bahs 别名设置
BASH_PROFILE_PATH="$HOME/.bash_profile"
# alias bash.open="open ${BASH_PROFILE_PATH}"
# alias bash.src="source ${BASH_PROFILE_PATH}"
# Bahs 别名end
# git
alias ga="git add ."
alias gck="git checkout"
alias gb="git branch"
alias gba="git branch -a"
alias gcm="git commit -m"
alias gcms="git commit -m save"
alias gpl="git pull"
alias gps="git push"
alias gs="git status"
alias glc="git clone"
# gitEnd
# 系统
alias cl="clear"
alias ip="ifconfig | grep -oE ‘inet.*netmask‘ | grep -oE ‘(\d+\.){3}\d+‘ | sed -n 2p"
alias ys="yarn start"
alias nrs="npm run start"
alias cdp="cd /Users/senguo/Documents/project"
alias cdo="cd /Users/senguo/Documents/open-source"
# 系统 end
# git自动补全
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
#
# 安卓相关配置
export ANDROID_HOME=/Users/senguo/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
mac快捷配置