From 4cb58d99849a988deecb277b988914de720e3452 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 3 Jul 2023 21:51:18 +0100 Subject: [PATCH] feat(fish): add abbrs for `nix`, `git` & `rust` --- home/apps/fish.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/home/apps/fish.nix b/home/apps/fish.nix index 511a65a..54a3b10 100644 --- a/home/apps/fish.nix +++ b/home/apps/fish.nix @@ -89,6 +89,14 @@ in { fish = { enable = true; shellAbbrs = { + # Nix + nb = "nix build"; + nr = "nix run"; + nd = "nix develop"; + nrpkgs = "nix run nixpkgs#"; + nf = "nix flake"; + nfl = "nix flake lock"; + # Git ga = "git add"; gb = "git branch"; @@ -97,6 +105,7 @@ in { gcan = "git commit --amend --no-edit"; gcm = "git checkout main"; gco = "git checkout"; + gcot = "git checkout --track"; gcb = "git checkout -b"; gd = "git diff"; gl = "git pull"; @@ -108,6 +117,14 @@ in { gs = "git switch"; gst = "git status"; + # Rust + cb = "cargo build"; + cbr = "cargo build --release"; + ct = "cargo test"; + ctlog = "cargo test -- --nocapture"; + cpub = "cargo publish"; + cpubdry = "cargo publish --dry-run"; + # Kubectl # TODO: Migrate these to fish functions