From d7714ae54eb542f6b3215776b53764088574ff8c Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Sat, 12 Oct 2024 19:13:00 +0300 Subject: [PATCH] Shell aliases --- flake.lock | 8 ++++---- home/features/cli/zsh.nix | 8 +++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 26cc5b8..fcbc0ad 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "dotfiles": { "flake": false, "locked": { - "lastModified": 1728740353, - "narHash": "sha256-O/AuZu+MKeFRNsanZ+vWdRJizOer8ri0cLApuP7eTaQ=", + "lastModified": 1728748987, + "narHash": "sha256-bJOg8cixnnc6LIYVDi4lAAtPYNXJ/6G47KhNPPImA+4=", "ref": "refs/heads/main", - "rev": "f7d2e0d11492542d4cdcdc38c09776493d5849da", - "revCount": 13, + "rev": "55b7b8bf72c3becef2d56a727363c7280c895094", + "revCount": 28, "type": "git", "url": "https://github.com/nomadics9/dotfiles.git" }, diff --git a/home/features/cli/zsh.nix b/home/features/cli/zsh.nix index f13f186..d52318b 100644 --- a/home/features/cli/zsh.nix +++ b/home/features/cli/zsh.nix @@ -23,15 +23,13 @@ in # ''; shellAliases = { - switchhypr = "sudo nixos-rebuild switch --flake .#hyprland"; - switchuhypr = "sudo nixos-rebuild switch --upgrade --flake .#hyprland"; - switchgnome = "sudo nixos-rebuild switch --flake .#gnome"; - switchugnome = "sudo nixos-rebuild switch --upgrade --flake .#gnome"; + switchhypr = "sudo nixos-rebuild switch --flake ."; + dotfilesu = "nix flake lock --update-input dotfiles"; + switchuhypr = "nix flake lock --update-input dotfiles && sudo nixos-rebuild switch --flake ."; clean = "sudo nix-collect-garbage -d"; cleanold = "sudo nix-collect-garbage --delete-old"; cleanboot = "sudo /run/current-system/bin/switch-to-configuration boot"; nvim = "kitty @ set-spacing padding=0 && /run/current-system/sw/bin/nvim"; - zed = "steam-run zed"; }; initExtraFirst = " unsetopt beep