Improve git config
+ Replace 'git browse' (hub-only) with git-open + Add URL aliases for github, gist and gitlab + Replace 'git branch' alias with 'git branch -av'
This commit is contained in:
parent
a75c64d04a
commit
344ed305c5
|
@ -5,8 +5,8 @@ g() { [[ $# = 0 ]] && git status --short . || git $*; }
|
||||||
alias git='noglob git'
|
alias git='noglob git'
|
||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gap='git add --patch'
|
alias gap='git add --patch'
|
||||||
alias gb='git branch'
|
alias gb='git branch -av'
|
||||||
alias gbr='git browse'
|
alias gop='git open'
|
||||||
alias gbl='git blame'
|
alias gbl='git blame'
|
||||||
alias gc='git commit'
|
alias gc='git commit'
|
||||||
alias gcm='git commit -m'
|
alias gcm='git commit -m'
|
||||||
|
|
|
@ -29,3 +29,15 @@
|
||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
process = git-lfs filter-process
|
process = git-lfs filter-process
|
||||||
clean = git-lfs clean -- %f
|
clean = git-lfs clean -- %f
|
||||||
|
[url "https://github.com/"]
|
||||||
|
insteadOf = gh:
|
||||||
|
[url "git@github.com:hlissner/"]
|
||||||
|
insteadOf = gh:/
|
||||||
|
[url "https://gitlab.com/"]
|
||||||
|
insteadOf = gl:
|
||||||
|
[url "https://gist.github.com/"]
|
||||||
|
insteadOf = gist:
|
||||||
|
[url "https://bitbucket.org/"]
|
||||||
|
insteadOf = bb:
|
||||||
|
[url "https://git.v0.com"]
|
||||||
|
insteadOf = v0:
|
||||||
|
|
|
@ -11,6 +11,7 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
user.packages = with pkgs; [
|
user.packages = with pkgs; [
|
||||||
gitAndTools.gh
|
gitAndTools.gh
|
||||||
|
gitAndTools.git-open
|
||||||
gitAndTools.diff-so-fancy
|
gitAndTools.diff-so-fancy
|
||||||
(mkIf config.modules.shell.gnupg.enable
|
(mkIf config.modules.shell.gnupg.enable
|
||||||
gitAndTools.git-crypt)
|
gitAndTools.git-crypt)
|
||||||
|
|
Loading…
Reference in a new issue