Compare commits

...

2 commits

2 changed files with 14 additions and 2 deletions

12
.vscode/upgrade.sh vendored
View file

@ -1,6 +1,16 @@
# error handler
handle_error() {
echo "Upgrade failed."
read -p "Press Enter to exit..."
exit 1
}
# stop on error
set -euxo pipefail
# trap any errors and call handle_error
trap 'handle_error "$BASH_COMMAND"' ERR
# update lock file
nix flake update
@ -12,3 +22,5 @@ nixos-rebuild switch -L --flake .#hydrogen --target-host hydrogen
git add flake.lock
git commit -m "⬆️ nix flake update"
git push
echo "Upgrade successful"

View file

@ -1,8 +1,8 @@
{ ... }: {
programs.exa.enable = true;
programs.eza.enable = true;
programs.zsh.shellAliases = {
l =
"exa -lahg --icons --git --time-style=long-iso --group-directories-first --color=always";
"eza -lahg --icons --git --time-style=long-iso --group-directories-first --color=always";
ll = "l --grid";
};
}