mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
find uncommitted git repos
This commit is contained in:
parent
afefa06229
commit
b486085580
16
fish.configlink/functions/uncommitted.fish
Executable file
16
fish.configlink/functions/uncommitted.fish
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user