Last active
March 11, 2019 01:30
-
-
Save zfz/9250259 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PATH="/usr/local/bin:$PATH" | |
| alias ll='ls -l' | |
| alias grep='grep --color=auto' | |
| export CLICOLOR=1 | |
| export LSCOLORS=GxFxCxDxBxegedabagaced | |
| # From: Candy Colored Terminal | |
| # URL http://stevelosh.com/blog/2009/03/candy-colored-terminal/ | |
| D=$'\e[37;40m' | |
| PINK=$'\e[35;40m' | |
| GREEN=$'\e[32;39m' | |
| ORANGE=$'\e[33;40m' | |
| CYCAN=$'\e[0;36m' | |
| BLUE=$'\e[1;34m' | |
| YELLOW=$'\e[0;33m' | |
| export PS1='${D}\n\u${D}@${PINK}\h${D} ${d}\w ${YELLOW}$(__git_ps1)\ | |
| ${GREEN}\n$ | |
| # Git color and auto complete | |
| source /usr/local/etc/bash_completion.d/git-completion.bash | |
| source /usr/local/etc/bash_completion.d/git-prompt.sh | |
| #GIT_PS1_SHOWUPSTREAM="auto" | |
| #GIT_PS1_SHOWCOLORHINTS="yes" | |
| export GIT_PS1_SHOWDIRTYSTATE=1 | |
| # Proxy switch | |
| function set_proxy() { | |
| export {http,https,ftp}_proxy='127.0.0.1:1087' | |
| } | |
| function un_setproxy() { | |
| unset {http,https,ftp}_proxy | |
| } | |
| # Pyenv | |
| if command -v pyenv 1>/dev/null 2>&1; then | |
| eval "$(pyenv init -)" | |
| fi | |
| alias brew="env PATH=${PATH//$(pyenv root)\/shims:/} brew" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment