mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
commandline append in uncommitted and darwin-rebuild
This commit is contained in:
parent
faa7f74773
commit
c646f126e2
@ -13,10 +13,10 @@
|
|||||||
if test "$argv[1]" = "offline"
|
if test "$argv[1]" = "offline"
|
||||||
set option "--option substitute false"
|
set option "--option substitute false"
|
||||||
end
|
end
|
||||||
commandline -r "git -C ${config.dotfilesPath} add --all"
|
commandline --replace "git -C ${config.dotfilesPath} add --all"
|
||||||
commandline -f execute
|
commandline --append "
|
||||||
commandline -r "darwin-rebuild switch $option --flake ${config.dotfilesPath}#macbook"
|
darwin-rebuild switch $option --flake ${config.dotfilesPath}#macbook"
|
||||||
commandline -f execute
|
commandline --function execute
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
set current_dir (pwd)
|
echo "Searching git repos..." >&2
|
||||||
cd $HOME/dev
|
find "$HOME/dev" -type d -name '.git' | while read dir
|
||||||
find . -type d -name '.git' | while read dir
|
set fullPath (dirname "$dir")
|
||||||
cd $dir/../
|
set relativePath (echo "$fullPath" | cut -d'/' -f5-)
|
||||||
and if test -n (echo (git status -s))
|
if test -n (echo (git -C "$fullPath" status -s))
|
||||||
pwd
|
echo "$relativePath"
|
||||||
git status -s
|
git -C "$fullPath" status -s
|
||||||
end
|
end
|
||||||
cd -
|
|
||||||
end
|
end
|
||||||
cd $current_dir
|
|
||||||
|
Loading…
Reference in New Issue
Block a user