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

Selecting when to use this script #14

Open
vegemite4me opened this issue Jun 25, 2020 · 1 comment
Open

Selecting when to use this script #14

vegemite4me opened this issue Jun 25, 2020 · 1 comment

Comments

@vegemite4me
Copy link

Thank you for creating this great script. I am not reporting a bug, but am wondering if there is a way for me to do what I want to do.

Once I install this script, every time I open a terminal it is in git-bash. But I would like to be able to open a git-bash-for-mac terminal, and also a normal zsh terminal with ease.

Is that possible without having to install/uninstall git-bash-for-mac every time?

@Ondkloss
Copy link

The install.sh inserts source ~/.git-bash-for-mac.sh into your .bash_profile. This means loading the git-bash script by default. You could edit your .bash_profile and instead make it an alias to activate git-bash on-demand. For example edit the mentioned source line to instead read:

alias gitbash='source ~/.git-bash-for-mac-zsh.sh'

Then you could open a terminal and it should be good old zsh. Then you can do gitbash to activate and I think exec zsh is a decent way of "deactivating" git-bash.

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

2 participants