Skip to content

Instantly share code, notes, and snippets.

View dragosprotung's full-sized avatar

Dragos Protung dragosprotung

View GitHub Profile
@dragosprotung
dragosprotung / git log
Created September 8, 2014 05:50
Better git log
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
function fish_prompt
and set retc green; or set retc red
tty|string match -q -r tty; and set tty tty; or set tty pts
set_color $retc
if [ $tty = tty ]
echo -n .-
else
echo -n '┬─'
end