Skip to content

Instantly share code, notes, and snippets.

View tamirble's full-sized avatar

Tamir Blecher tamirble

View GitHub Profile
@tamirble
tamirble / .bash_profile
Created November 24, 2018 20:51
bash_profile with nice emojies and git branches
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
get_emoji() {
if [ "${exit_code}" -eq "0" ]; then
printf 😌
else
printf 😅
fi