move git from cli to devtools & add gh

This commit is contained in:
Sean Buckley 2024-12-05 17:26:52 -05:00
parent 16ea3ccd34
commit b4f956473c
2 changed files with 18 additions and 17 deletions

View file

@ -20,7 +20,6 @@
nix-diff nix-diff
nixfmt-rfc-style nixfmt-rfc-style
nix-index nix-index
nix-prefetch-github
nodejs nodejs
openssl openssl
parted parted
@ -104,22 +103,6 @@
); );
}; };
programs.git = {
enable = true;
config = {
alias.up = "push";
alias.dn = "pull";
alias.sh = "show";
alias.glog = "log --all --decorate --oneline --graph";
alias.glogl = "log --all --decorate --oneline --graph -n10";
alias.logl = "log --oneline -n10";
alias.vlog = "log --name-status";
core.pager = "less -x1,5";
pull.ff = "only";
init.defaultBranch = "main";
};
};
programs.tmux = { programs.tmux = {
enable = true; enable = true;
terminal = "screen-256color"; terminal = "screen-256color";

View file

@ -16,12 +16,14 @@ in
cargo cargo
efm-langserver efm-langserver
errcheck errcheck
gh
go go
gopls gopls
kubectl kubectl
kubernetes-helm kubernetes-helm
lua-language-server lua-language-server
nil nil
nix-prefetch-github
nodePackages.prettier nodePackages.prettier
nodePackages.typescript-language-server nodePackages.typescript-language-server
pyright pyright
@ -46,5 +48,21 @@ in
source <(kubectl completion bash) source <(kubectl completion bash)
complete -F __start_kubectl k complete -F __start_kubectl k
''; '';
programs.git = {
enable = true;
config = {
alias.up = "push";
alias.dn = "pull";
alias.sh = "show";
alias.glog = "log --all --decorate --oneline --graph";
alias.glogl = "log --all --decorate --oneline --graph -n10";
alias.logl = "log --oneline -n10";
alias.vlog = "log --name-status";
core.pager = "less -x1,5";
pull.ff = "only";
init.defaultBranch = "main";
};
};
}; };
} }