Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No config file #1

Open
michondr opened this issue Nov 2, 2019 · 1 comment
Open

No config file #1

michondr opened this issue Nov 2, 2019 · 1 comment

Comments

@michondr
Copy link
Owner

michondr commented Nov 2, 2019

Add config file so that user can set his custom variables

  • custom install paths
  • git name and email
  • work folders (including automatic git config)
  • ...
@michondr
Copy link
Owner Author

michondr commented Nov 5, 2019

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

work_folder = ~
work_clients = [
   google -> [email protected]
   amazon -> [email protected]
   microsoft -> [email protected]
]

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

[user]
        email = [email protected]

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant