Skip to content

Instantly share code, notes, and snippets.

@sconstantinides
Last active April 2, 2020 15:42
Show Gist options
  • Save sconstantinides/7e70d8ae996e943d2f34 to your computer and use it in GitHub Desktop.
Save sconstantinides/7e70d8ae996e943d2f34 to your computer and use it in GitHub Desktop.
Simple bash profile
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\w\$(parse_git_branch) $ "
export EDITOR="atom -w"
export PATH=/usr/local/bin:$PATH
alias bash="open ~/.bash_profile"
alias projects="cd ~/Projects"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment