dotfiles/fish/functions/git_cwd_info.fish

11 lines
199 B
Fish
Executable File

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