dotfiles/fish/functions/git_cwd_info.fish

11 lines
199 B
Fish
Raw Normal View History

2009-06-10 13:04:31 +10:00
function git_cwd_info
if test -d .git
printf -- " - %s, " (git_parse_branch)
if test (git ls-files -m | wc -l) -eq 0
echo 'clean'
else
printf "%s" (git_dirty_files_count)
end
end
end