From 0ce9764609099bc9fb3bdcd3e55f993a8629a3f4 Mon Sep 17 00:00:00 2001 From: Poby Date: Fri, 4 Apr 2025 17:36:48 +0900 Subject: [PATCH] feat(system.nix): git alias --- modules/system.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/system.nix b/modules/system.nix index 335f952..162231b 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -221,6 +221,7 @@ shellAliases = { ls = "lsd --color=auto"; l = "lsd -lhG"; + lt = "l --tree"; ll = "lsd -alhG"; lh = "lsd -dl .*"; lsd = "lsd --group-directories-first"; @@ -230,6 +231,16 @@ nixrebuild = "darwin-rebuild switch --flake ~/.config/nix-darwin"; nixconfig = "code ~/.config/nix-darwin"; sshconfig = "code ~/.ssh/config"; + + # git + g = "git"; + gaa = "git add --all"; + gcm = "git commit -m"; + gca = "git commit --amend"; + gst = "git status"; + gco = "git checkout"; + gl = "git pull"; + glg = "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"; }; };