commandline append in uncommitted and darwin-rebuild

This commit is contained in:
Noah Masur 2022-07-05 19:16:08 -04:00
parent faa7f74773
commit c646f126e2
2 changed files with 11 additions and 13 deletions

View File

@ -13,10 +13,10 @@
if test "$argv[1]" = "offline"
set option "--option substitute false"
end
commandline -r "git -C ${config.dotfilesPath} add --all"
commandline -f execute
commandline -r "darwin-rebuild switch $option --flake ${config.dotfilesPath}#macbook"
commandline -f execute
commandline --replace "git -C ${config.dotfilesPath} add --all"
commandline --append "
darwin-rebuild switch $option --flake ${config.dotfilesPath}#macbook"
commandline --function execute
'';
};
};

View File

@ -1,11 +1,9 @@
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
echo "Searching git repos..." >&2
find "$HOME/dev" -type d -name '.git' | while read dir
set fullPath (dirname "$dir")
set relativePath (echo "$fullPath" | cut -d'/' -f5-)
if test -n (echo (git -C "$fullPath" status -s))
echo "$relativePath"
git -C "$fullPath" status -s
end
cd -
end
cd $current_dir