mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 12:10:45 +02:00
update: modules/fish.nix
This commit is contained in:
@@ -39,19 +39,17 @@
|
|||||||
if test "$md5_before" != (md5sum $file)
|
if test "$md5_before" != (md5sum $file)
|
||||||
echo "Changes made. Prepparing commit..."
|
echo "Changes made. Prepparing commit..."
|
||||||
|
|
||||||
pushd $config_dir
|
|
||||||
|
|
||||||
git add $file
|
|
||||||
|
|
||||||
set -l rel_file (realpath --relative-to=$config_dir $file)
|
set -l rel_file (realpath --relative-to=$config_dir $file)
|
||||||
|
|
||||||
set commit_msg "update: $rel_file"
|
if home-manager switch -b backup
|
||||||
git commit -m "$commit_msg"
|
pushd $config_dir
|
||||||
git push
|
git add -A
|
||||||
|
set commit_msg "update: $rel_file"
|
||||||
|
git commit -m "$commit_msg"
|
||||||
|
git push
|
||||||
|
popd
|
||||||
|
end
|
||||||
|
|
||||||
home-manager switch -b backup
|
|
||||||
|
|
||||||
popd
|
|
||||||
else
|
else
|
||||||
echo "No changes made"
|
echo "No changes made"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user