Ho appena installato Git per Windows 2.5.0 su Windows 7 e sembra che il mio file .bashrc
non venga eseguito quando eseguo Git Bash.Git per Windows non esegue il file .bashrc
ho creato il file in questo modo:
[email protected] MINGW64/
$ pwd
/
[email protected] MINGW64/
$ cd ~
[email protected] MINGW64 ~
$ pwd
/c/Users/Administrator
[email protected] MINGW64 ~
$ touch .bashrc
[email protected] MINGW64 ~
$ vi .bashrc
[... I insert the line "ZZZTESTVAR=234" (without the quotes) into the file in vim ...]
[email protected] MINGW64 ~
$ exit
Eppure, quando ho prossima corro Git Bash:
[email protected] MINGW64/
$ set | grep ZZZ
[email protected] MINGW64/
$ cat ~/.bashrc
ZZZTESTVAR=234
[email protected] MINGW64/
$ ZZZTESTVAR=234
[email protected] MINGW64/
$ set | grep ZZZ
ZZZTESTVAR=234
[email protected] MINGW64/
$
Perché non è il mio .bashrc
in esecuzione? Sembra essere nel posto giusto e avere le autorizzazioni giuste.
Sto eseguendo Git bash versione 1.9.5-preview20150319 e ho eseguito lo stesso identico test eseguito, ma per me ha funzionato. Il mio '.bashrc' * è stato * eseguito. La variabile * era * impostata. Hai un '.profile' o' .bash_profile' nel modo? Questi interromperanno '.bashrc' dall'esecuzione. – Wolf
No, non ho nemmeno un '.profile' o' .bash_profile'. Ma stavi usando Git per Windows 2.5.0? – Jez