Skip to content

Instantly share code, notes, and snippets.

@gak
Created June 10, 2013 06:40
Show Gist options
  • Save gak/5746928 to your computer and use it in GitHub Desktop.
Save gak/5746928 to your computer and use it in GitHub Desktop.
My custom fish prompt code explained at http://geraldkaszuba.com/tweaking-fish-shell/
# Git branch and dirty files
git_branch
if set -q git_branch
set out $git_branch
if test $git_dirty_count -gt 0
set out "$out$c0:$ce$git_dirty_count"
end
section git $out
end
@CJD14
Copy link

CJD14 commented Jan 12, 2014

How do u axtually use this? Is it just a function? Or do I just include this in my prompt, and the GIT_branch part of your other gist is a function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment