From a6d5057deb6986ae93e5f47c4d23585989786d80 Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Sat, 3 Dec 2022 00:00:03 +0700 Subject: [PATCH] user/zsh: update abbreviations --- modules/system/home-manager.nix | 1 - modules/user/zsh.nix | 17 +++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/modules/system/home-manager.nix b/modules/system/home-manager.nix index 43bc0ac..cb07f48 100644 --- a/modules/system/home-manager.nix +++ b/modules/system/home-manager.nix @@ -4,7 +4,6 @@ useUserPackages = true; extraSpecialArgs = { inherit enableGUI inputs modules; - sysConfig = config; }; }; } diff --git a/modules/user/zsh.nix b/modules/user/zsh.nix index 35b5e7c..a03d6ee 100644 --- a/modules/user/zsh.nix +++ b/modules/user/zsh.nix @@ -1,5 +1,5 @@ # vim: ft=nix -{ config, inputs, pkgs, sysConfig, ... }: +{ config, inputs, pkgs, ... }: let lib = pkgs.lib; @@ -15,19 +15,12 @@ let ll = "ls -al"; q = "exit"; - peach = "ssh lava@peach"; - bunny = "ssh bunny@peach"; - - fa = "grep -Inr"; - fai = "grep -Iinr"; + fa = "rg"; + fai = "rg -i"; g1 = "xgamma -gamma 1"; g3 = "xgamma -gamma 1.3"; - bat = "echo 'battery' | doas tee /sys/class/drm/card1/device/power_dpm_state"; - bal = "echo 'balanced' | doas tee /sys/class/drm/card1/device/power_dpm_state"; - sclk = "doas setclock 50000 70000 800"; - sysu = "doas systemctl restart"; sysd = "doas systemctl stop"; syss = "doas systemctl status"; @@ -38,7 +31,7 @@ let jf = "doas journalctl -f"; fl = "cd ~/Projects/flakes"; - nr = "doas nixos-rebuild switch --flake .#${sysConfig.networking.hostName} -v"; + nr = "doas nixos-rebuild switch --flake .# -v -L"; gs = "git status"; ga = "git add"; @@ -49,7 +42,7 @@ let gco = "git checkout"; gd = "git diff"; gds = "git diff --staged"; - gf = "git commit --amend --no-edit --reset-author"; + gf = "git commit --amend --reset-author --no-edit"; gl = "git log"; gr = "git rebase -i"; };