Skip to content

Instantly share code, notes, and snippets.

@Andyliwr
Created August 29, 2019 07:58
Show Gist options
  • Save Andyliwr/4cc1daea3b40df26fc3aa4ed53eba7b2 to your computer and use it in GitHub Desktop.
Save Andyliwr/4cc1daea3b40df26fc3aa4ed53eba7b2 to your computer and use it in GitHub Desktop.
贴一份bash_profile
# 安装keychain ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" && brew install keychain
eval `keychain --eval id_rsa`
# 服务器简称
alias ssh='ssh -A -o ConnectTimeout=3 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
alias gw1="ssh -A ziling@login1.qima-inc.com"
alias gw2="ssh -A ziling@login2.qima-inc.com"
alias qagw1="ssh -A ziling@login1.qa.qima-inc.com"
alias qagw2="ssh -A ziling@login2.qa.qima-inc.com"
alias tencent="ssh -A ubuntu@118.24.94.40"
alias ynpm="npm --registry=http://registry.npm.qima-inc.com --disturl=http://npm.taobao.org/mirrors/node"
alias yyarn="yarn --registry=http://registry.npm.qima-inc.com"
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# 彩色输出
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
# Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
# 修改前缀
export TERM="xterm-color"
PS1='\033[012;32m\][\u@\t]\033[012;33m\]\w\[\033[012;36m\]\$\[\033[00m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment