summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/settings/git.nix2
-rw-r--r--user/settings/zsh.nix3
2 files changed, 4 insertions, 1 deletions
diff --git a/user/settings/git.nix b/user/settings/git.nix
index 503b9e3f..18a40644 100644
--- a/user/settings/git.nix
+++ b/user/settings/git.nix
@@ -60,6 +60,8 @@
       ci = "commit";
       br = "branch";
       co = "checkout";
+      sw = "switch";
+      rs = "restore";
       lasttag = "!sh -c 'git tag --sort=version:refname | grep \"^v\\\\?[0-9]\" | tail -n1'";
       pending = "!sh -c 'git log --oneline --grep=\"#\" ...$(git lasttag)'";
       lg = "log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an> %Cred%d%Creset'";
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 79384634..7a032b37 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -211,7 +211,8 @@ in
       gsh = "git show";
       gsm = "git submodule";
       gci = "git commit";
-      gco = "git checkout";
+      gx = "git restore";
+      gb = "git switch";
       gbr = "git br";
       gbrc = "git checkout -b";
       gbrd = "git branch --delete";