Compare commits
2 commits
24c4cf3940
...
00f6999924
Author | SHA1 | Date | |
---|---|---|---|
Laureηt | 00f6999924 | ||
Laureηt | 7733093525 |
12
.vscode/upgrade.sh
vendored
12
.vscode/upgrade.sh
vendored
|
@ -1,6 +1,16 @@
|
||||||
|
# error handler
|
||||||
|
handle_error() {
|
||||||
|
echo "Upgrade failed."
|
||||||
|
read -p "Press Enter to exit..."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
# stop on error
|
# stop on error
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
|
# trap any errors and call handle_error
|
||||||
|
trap 'handle_error "$BASH_COMMAND"' ERR
|
||||||
|
|
||||||
# update lock file
|
# update lock file
|
||||||
nix flake update
|
nix flake update
|
||||||
|
|
||||||
|
@ -12,3 +22,5 @@ nixos-rebuild switch -L --flake .#hydrogen --target-host hydrogen
|
||||||
git add flake.lock
|
git add flake.lock
|
||||||
git commit -m "⬆️ nix flake update"
|
git commit -m "⬆️ nix flake update"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
echo "Upgrade successful"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
programs.exa.enable = true;
|
programs.eza.enable = true;
|
||||||
programs.zsh.shellAliases = {
|
programs.zsh.shellAliases = {
|
||||||
l =
|
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";
|
ll = "l --grid";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue