Skip to content

Instantly share code, notes, and snippets.

@tangnotes
Last active July 5, 2018 15:00
Show Gist options
  • Save tangnotes/93371132734271fe3ea8acb1158fdb28 to your computer and use it in GitHub Desktop.
Save tangnotes/93371132734271fe3ea8acb1158fdb28 to your computer and use it in GitHub Desktop.
Mac Bash Profile
export TANGO_ENV=personal_laptop
export PS1="[\033[32m\d \t\033[0m] \h: \033[36m\w\033[0m $\n> "
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PATH=/usr/local/bin:$PATH
@tangnotes
Copy link
Author

export TANGO_ENV=corp_mac
export PS1="[\033[32m\d \t\033[0m] \u: \033[36m\w\033[0m $\n> "
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

@tangnotes
Copy link
Author

tangnotes commented Jul 5, 2018

function _cd() {
    GitInfo=""
    if [ -d '.git' ]
    then
        GitBranch=`git branch | grep '*' | awk '{print $2}'`
        GitInfo=" (Git:$GitBranch)"
    fi
    export PS1="[\033[32m\d \t\033[0m] \u: \033[36m\w$GitInfo\033[0m $\n$UpperHostName> "
}

UpperHostName=`hostname -s | tr a-z A-Z`
export PROMPT_COMMAND=_cd
export TANGO_ENV=james_mac
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment