diff --git a/fish.configlink/functions/uncommitted.fish b/fish.configlink/functions/uncommitted.fish new file mode 100755 index 0000000..824adc6 --- /dev/null +++ b/fish.configlink/functions/uncommitted.fish @@ -0,0 +1,16 @@ +#!/usr/local/bin/fish + +function uncommitted --description "Find uncommitted git repos" + set current_dir (pwd) + cd $HOME/dev + find . -type d -name '.git' | \ + while read dir + cd $dir/../ + and if test -n (echo (git status -s)) + pwd + git status -s + end + cd - + end + cd $current_dir +end