-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
.bashrc doesn't execute #191
Comments
Probably related to msysgit/msysgit#301. |
Yes I think it is related. If I |
@kjeremy so how about giving it a try? This commit would still need some work, but it should be straight-forward to address my feedback (and to adjust the commit message). |
@kjeremy are you still interested in resolving this issue? |
Sure. Hopefully I'll get some time to work on it next week. What exactly On Sat, Jun 20, 2015 at 11:50 AM, dscho notifications@github.com wrote:
|
|
@kjeremy so... did you get a chance to address your issue yet? |
I just copied my .bashrc to .bash_profile. |
That's a work-around, not a solution, of course. A proper fix would be much more desirable. |
The generally accepted solution is to add a line to your
This will ensure that your .bashrc is read for both login shells and interactive, non-login shells. |
@gordontyler That sounds good. Are you sure we do not need to use an explicit I think we need to do this as part of |
I don't need to use I have a |
Just a chiming in: @kjeremy starts up the Bash shell with login ( --login) and interactively (-i) just like me (consoleZ ftw!) and like older releases of Git for Win used to launch Bash. And doing so will not load the .bashrc file in the home dir with Bash V4.3 -- See: However the Hope this is helpful! I'd be happy to PR if you can point to where and how ~ |
However, that page specifically states:
Perhaps the Git installer should create a |
@dscho How do I find out where bash.bashrc comes from? I've installed the sdk and checked out |
While following the manual be the proper way to do it, I think we can forgive the exception for Windows: Like @descho suggested adding a |
@kjeremy @cristovaov let's leave @descho out of this, okay? She probably is wondering what us cranky old guys want from her, discussing things that are far, far away from visual design... |
Is the renaming of |
@Francisc this is not a rename. See http://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html. Especially
and
They just have different "meanings". |
@dscho Oh Dear! I apologise I've tagged by mistake :$ |
@cristovaov no worries. I would never have seen her photos if it weren't for your tyop. Among others, I like this one a lot. |
Thanks a lot, @nalla. Awesome reply and everything clear now. |
I'd like to voice another vote to please keep this consistent with other bash environments and not make this behavior be specific to windows. I know of several people, myself included, that share dotfiles across windows, osx, and linux. While I agree that the logic determining when If there is confusion around when to use which one, I've always found this superuser answer to be a good sanity check in addition to the link above. |
@travi no worries. There was never a plan to deviate from the behavior in other Bash environments. It is really useful to have a |
@dscho That is great! It turns out she is an acquaintance of mine - Please do tell her, I think she'd appreciate it :) |
…helper gvfs-helper: create tool to fetch objects using the GVFS Protocol
Includes commits from these pull requests: git-for-windows#191 git-for-windows#205 git-for-windows#206 git-for-windows#207 git-for-windows#208 git-for-windows#215 git-for-windows#220 git-for-windows#221 Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Includes commits from these pull requests: git-for-windows#191 git-for-windows#205 git-for-windows#206 git-for-windows#207 git-for-windows#208 git-for-windows#215 git-for-windows#220 git-for-windows#221 Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Includes commits from these pull requests: git-for-windows#191 git-for-windows#205 git-for-windows#206 git-for-windows#207 git-for-windows#208 git-for-windows#215 git-for-windows#220 git-for-windows#221 Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Includes commits from these pull requests: git-for-windows#191 git-for-windows#205 git-for-windows#206 git-for-windows#207 git-for-windows#208 git-for-windows#215 git-for-windows#220 git-for-windows#221 Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Includes commits from these pull requests: git-for-windows#191 git-for-windows#205 git-for-windows#206 git-for-windows#207 git-for-windows#208 git-for-windows#215 git-for-windows#220 git-for-windows#221 Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Includes commits from these pull requests: git-for-windows#191 git-for-windows#205 git-for-windows#206 git-for-windows#207 git-for-windows#208 git-for-windows#215 git-for-windows#220 git-for-windows#221 Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
In trying to use git through ConsoleZ I invoke it with the following command:
PathToGit\Git\git-cmd.exe --command=PathToGit\Git\usr\bin\bash.exe --login -i
Logging in this way does not execute the user's
.bashrc
.The text was updated successfully, but these errors were encountered: