Ich habe gerade Git für Windows 2.5.0 auf Windows 7 installiert, und es scheint, dass meine .bashrc
Datei nicht ausgeführt wird, wenn ich Git Bash ausführen.Git für Windows führt meine .bashrc-Datei nicht
habe ich die Datei wie folgt:
[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
Doch wenn ich Git Bash nächsten laufen:
[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/
$
Warum ist nicht mein .bashrc
Sein Lauf? Es scheint an der richtigen Stelle zu sein und die richtigen Berechtigungen zu haben.
Ich laufe Git Bash Version 1.9.5-preview20150319 und lief den gleichen Test Sie lief, aber für mich, es hat funktioniert. Mein '.bashrc' * wurde * ausgeführt. Die Variable * wurde * gesetzt. Hast du ein '.profile' oder' .bash_profile' im Weg? Dadurch wird verhindert, dass '.bashrc' ausgeführt wird. – Wolf
Nein, ich habe nicht einmal ein '.profile' oder' .bash_profile'. Aber haben Sie Git für Windows 2.5.0 benutzt? – Jez