all repos — nixfiles @ 4c8a1ba2141f0e22ad4d294b9058869628ff4fc1

System and user configuration, managed by nix and home-manager

Add aliases for new git switch/restore commands (v2.23)

Alan Pearce
commit

4c8a1ba2141f0e22ad4d294b9058869628ff4fc1

parent

ecd0980872ec23624a5871df7f86c6a9adad66fe

2 files changed, 4 insertions(+), 1 deletion(-)

jump to
M user/settings/git.nixuser/settings/git.nix
@@ -60,6 +60,8 @@ st = "status -sb";
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'";
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -211,7 +211,8 @@ grsh = "git reset --hard";
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";