Skip to content

Instantly share code, notes, and snippets.

@richardgill
Created January 1, 2019 18:12
Show Gist options
  • Save richardgill/b23d3461f3e54a80d0f299e3f9ec18e9 to your computer and use it in GitHub Desktop.
Save richardgill/b23d3461f3e54a80d0f299e3f9ec18e9 to your computer and use it in GitHub Desktop.
Rich's Bash Profile Tips
export PS1="\[\e[30;1m\w\[\e[0m\]\$(git-radar --bash --fetch)\n$ "
alias githubdiff='open "https://github.$(git config remote.origin.url | cut -f2 -d.)/compare/$(git rev-parse --abbrev-ref HEAD)?expand=1"'
alias bitbucketdiff='open "$(git config remote.origin.url)/pull-requests/new#diff"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment