mirror of https://github.com/bjeanes/dotfiles.git
11 lines
199 B
Fish
11 lines
199 B
Fish
|
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
|