-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Using .bashrc #565
Comments
ive found that Cmder on its own doesn't read your bashrc. But yeah i would be interested in a solution too |
Is there some sort of file that is read that is similar to /bashrc? For example if I wanted to create some new environment variable. What tells Cmder to use the aliases in |
@DanielGGordon The https://github.com/bliker/cmder/blob/master/vendor/init.bat#L50 This is ran each time cmder (or a new tab) launches so I'd avoid putting anything too complex in there though. |
Ok thanks that is exactly what I was looking for. Just wanted to set some path variables. |
%USERPROFILE%.bashrc is now sourced and vendor\init.bat is not used for bash in see #702 |
Can I add some Windows command like |
@thehackercat you don't want to do that because that file is replaced on update of cmder. Create a proxy.bat file in %cmder_root%/config/profile.d with: set http_proxy=http://10.178.0.84:3128 ...... = whatever else you want to bypass proxy. You can also do a proxy.sh that will be uses by bash export http_proxy=http://10.178.0.84:3128 |
@daxgames Thanks, it works! |
In order to make Cmder automatically read your .bashrc file, open Cmder.exe and go to: This way, when cmder starts up, it automatically uses bash, which will read your .bashrc. |
I am trying to install thefuck which installation part asks to add a line in .bashrc (or equivalent).
I tried to create this ~/.bashrc file but it doesn't seem to work. Is there any way to make Cmder load the file or maybe there is another .bashrc equivalent specific to Cmder where I could put this command?
The text was updated successfully, but these errors were encountered: