Last active
September 7, 2016 20:32
-
-
Save JulianJorgensen/9584c117745979cf089183427a683e40 to your computer and use it in GitHub Desktop.
bash profile aliases
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
# git branch highlighting | |
function parse_git_branch | |
{ | |
branch=`git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'` | |
if [ -n "$branch" ]; then | |
echo "${branch} " | |
fi | |
} | |
function proml | |
{ | |
local WHITE="\[\033[1;37m\]" | |
local LIGHT_GREY="\[\033[0;37m\]" | |
local RED="\[\033[0;31m\]" | |
PS1="$RED\$(parse_git_branch)$LIGHT_GREY\w\$ " | |
} | |
proml | |
# GITHUB PR ALIASES | |
alias pr="hub pull-request -b coverall:master --browse" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment