Skip to content

Instantly share code, notes, and snippets.

@er2
Created May 8, 2018 12:45
Show Gist options
  • Save er2/1cbad50049aba880571272d2c0f40ec8 to your computer and use it in GitHub Desktop.
Save er2/1cbad50049aba880571272d2c0f40ec8 to your computer and use it in GitHub Desktop.
~/.config/fish/functions/recent-branches.fish
function recent-branches
git for-each-ref --sort=-committerdate refs/heads/ --format='%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' | column -ts'|' $argv;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment