Skip to content

Instantly share code, notes, and snippets.

@enthal
Last active February 17, 2017 23:44
Show Gist options
  • Save enthal/c45c32f00188e3885d18 to your computer and use it in GitHub Desktop.
Save enthal/c45c32f00188e3885d18 to your computer and use it in GitHub Desktop.
.profile of ♡
echo bash
parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'; }
PS1="________________________________________________________\n\u@\h \w\[\e[0;33;49m\]\$(parse_git_branch)\[\e[0;0m\]\n\$ "
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
export EDITOR="subl -w"
# export EDITOR="atom -w"
ll() { ls -al $*; }
ep() { subl ~/.profile; }
.p() { . ~/.profile; }
gs() { git status -bs; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment