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:
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
if test -n "$file"
|
if test -n "$file"
|
||||||
set -l md5_before (md5sum $file)
|
set -l md5_before (md5sum $file)
|
||||||
|
pushd $config_dir
|
||||||
|
|
||||||
nvim $file
|
nvim $file
|
||||||
|
|
||||||
@@ -42,14 +43,13 @@
|
|||||||
set -l rel_file (realpath --relative-to=$config_dir $file)
|
set -l rel_file (realpath --relative-to=$config_dir $file)
|
||||||
|
|
||||||
if home-manager switch -b backup
|
if home-manager switch -b backup
|
||||||
pushd $config_dir
|
|
||||||
git add -A
|
git add -A
|
||||||
set commit_msg "update: $rel_file"
|
set commit_msg "update: $rel_file"
|
||||||
git commit -m "$commit_msg"
|
git commit -m "$commit_msg"
|
||||||
git push
|
git push
|
||||||
popd
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
popd
|
||||||
else
|
else
|
||||||
echo "No changes made"
|
echo "No changes made"
|
||||||
end
|
end
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ls = {
|
ls = {
|
||||||
body = "eza --long --icons --all --group-directories-first --git $argv";
|
body = "eza --long --icons --group-directories-first --git $argv";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user