2017-01-08 16 views
2

私のsettings.jsonは非常にシンプルで、cmd.exeをsh.exe(gitから)に置き換えています。VSCode Terminal + Git Bashコマンドが見つかりません

{ 
    "terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\sh.exe" 
} 

シェルを開くと、何も機能しません。私は私もできません。

sh.exe"-3.1$ ls 
sh.exe": ls: command not found 
sh.exe"-3.1$ cd .. 
sh.exe"-3.1$ ls 
sh.exe": ls: command not found 
sh.exe"-3.1$ 

VSCodeはMingw32(gitのbash)で動作しませんか?どのように私はそれを働かせるために設定するのですか?

答えて

4

ので、gitのbashは2つの引数は--loginと別途

を-iこのように、完全なJSONがどのように見える必要がある必要があります。これは、すべてのコマンドが統合されたターミナルで働くことになります

{ 
    "terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\bash.exe", 
    "terminal.integrated.shellArgs.windows": ["--login","-i"] 
} 

関連する問題