michondr / leazy

linux eazy - dotfiles & config for fresh install of ubuntu
1 stars 0 forks source link

No config file #1

Open michondr opened 5 years ago

michondr commented 5 years ago

Add config file so that user can set his custom variables

michondr commented 5 years ago

work folder and list of clients add array of client names in format

work_folder = ~
work_clients = [
   google -> ondrej.michalek@google.com
   amazon -> michalek@amazon.com
   microsoft -> michondr@microsoftonline.gov
]

for each of these there will be created directory in work folder $work/_$client, and created a gitconfig file with email:

[user]
        email = ondrej.michalek@google.com

each of these files will then be added to root .gitconfig file in this way:

[includeIf "gitdir:$work_dir/_$work_client/"]
        path = $work_dir/_$work_client/.gitconfig