From 4b5554f584674be05b35411df50476614b5b8777 Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 20 Oct 2024 20:13:45 -0500 Subject: [PATCH] fish: add git abbreviations Signed-off-by: Myned --- options/custom/programs/fish.nix | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/options/custom/programs/fish.nix b/options/custom/programs/fish.nix index 4332021..a39cf98 100644 --- a/options/custom/programs/fish.nix +++ b/options/custom/programs/fish.nix @@ -69,7 +69,6 @@ in { c = "clear"; e = "exit"; m = "mosh"; - s = "ssh"; d = "docker"; dc = "docker compose"; @@ -96,11 +95,31 @@ in { dspav = "docker system prune --all --volumes"; g = "git"; - gb = "git bisect"; - gbb = "git bisect bad"; - gbg = "git bisect good"; + ga = "git add"; + gb = "git branch"; + gbi = "git bisect"; + gbib = "git bisect bad"; + gbig = "git bisect good"; gc = "git clone"; + gd = "git diff"; + gf = "git fetch"; + gi = "git init"; + gk = "git checkout"; + gl = "git log"; + gm = "git merge"; + gp = "git pull"; + gps = "git push"; + gr = "git reset"; + grh = "git reset --hard"; + grb = "git rebase"; + grm = "git rm"; + grt = "git remote"; + grv = "git revert"; gs = "git status"; + gsh = "git show"; + gst = "git stash"; + gsw = "git switch"; + gy = "git cherrypick"; jc = "journalctl"; jcs = "journalctl --system"; @@ -161,6 +180,9 @@ in { scut = "systemctl --user stop"; scuu = "systemctl --user unmask"; + s = "ssh"; + si = "ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostkeyAlgorithms=+ssh-rsa -o Ciphers=aes256-cbc"; + ta = "tmux attach"; td = "tmux detach"; tk = "tmux kill-session";