git: update work gitdir path

This commit is contained in:
lelgenio 2022-04-07 16:27:13 -03:00
parent 43e0fdf85e
commit 1044517e8f
4 changed files with 21 additions and 9 deletions

View File

@ -126,6 +126,7 @@ abbr -g gc 'git commit'
abbr -g gca 'git commit --all'
abbr -g gcf 'git commit --fixup'
abbr -g gp 'git push'
abbr -g gw 'git switch'
abbr -g gr 'cd (git root)'
abbr -g gri 'git rebase --interactive FETCH_HEAD'

View File

@ -5,11 +5,6 @@
# | |_| | | |_
# \____|_|\__|
[user]
name = {{@@ username @@}}
email = {{@@ mail.personal.user @@}}
[init]
defaultBranch = main
@ -55,7 +50,10 @@
excludesfile = {{@@ _dotfile_abs_dst @@}}/ignore
; hooksPath = {{@@ _dotfile_abs_dst @@}}/hooks/
[includeIf "gitdir:~/Projects/work/"]
path = ~/.config/git/config-work
[includeIf "gitdir:~/Projects/"]
path = {{@@ _dotfile_abs_dst @@}}/config-personal
[includeIf "gitdir:~/Wopus/"]
path = {{@@ _dotfile_abs_dst @@}}/config-work
# vim: ft=ini

View File

@ -0,0 +1,13 @@
# {{@@ header() @@}}
# ____ _ _
# / ___(_) |_
# | | _| | __|
# | |_| | | |_
# \____|_|\__|
[user]
name = {{@@ username @@}}
email = {{@@ mail.personal.user @@}}
# vim: ft=ini

View File

@ -7,7 +7,7 @@
[user]
name = {{@@ mail.work.from | capitalize @@}}
email = {{@@ mail.work.user.split("@")[0] @@}}
name = {{@@ mail.work.from | title @@}}
email = {{@@ mail.work.user @@}}
# vim: ft=ini