git aliases and some cleanup

This commit is contained in:
cy 2024-12-14 13:38:09 -05:00
parent fe03c7d73c
commit a7dcc359c9
3 changed files with 24 additions and 16 deletions

View file

@ -20,9 +20,7 @@
"zsh-users/zsh-completions"
"romkatv/powerlevel10k"
"Aloxaf/fzf-tab"
"z-shell/zsh-eza"
"ohmyzsh/ohmyzsh path:plugins/colored-man-pages"
"ohmyzsh/ohmyzsh path:plugins/git"
];
};
history = {
@ -56,6 +54,25 @@
"nrs" = "sudo nixos-rebuild switch --flake .";
"nrt" = "sudo nixos-rebuild test --flake .";
"hrs" = "home-manager switch --flake .";
"g" = "git";
"ga" = "git add";
"gaa" = "git add --all";
"gb" = "git branch";
"gc" = "git commit --verbose";
"gcmsg" = "git commit --message";
"gd" = "git diff";
"gdca" = "git diff --cached";
"gds" = "git diff --staged";
"gl" = "git log --stat";
"glg" = "git log --graph";
"glga" = "git log --graph --decorate --all";
"glo" = "git log --oneline --decorate";
"gp" = "git push";
"gr" = "git remote";
"gra" = "git remote add";
"grv" = "git remote --verbose";
"gs" = "git status --short";
"gss" = "git status";
};
sessionVariables = {
"FZF_DEFAULT_COMMAND" = "rg";
@ -72,4 +89,9 @@
enableZshIntegration = true;
options = [ "--cmd cd" ];
};
programs.eza = {
enable = true;
enableZshIntegration = true;
};
}