소스 검색

Vagrantfile: cygwin: Prepend cygwin PATH.

Otherwise crippled programs of the pre-installed MLS-OpenSSHd's path
hide the cygwin programs.
Hartmut Goebel 8 년 전
부모
커밋
f962659f11
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Vagrantfile

+ 2 - 2
Vagrantfile

@@ -205,11 +205,11 @@ def packages_cygwin(version)
 
     echo "alias mkdir='mkdir -p'" > ~/.profile
     echo "export CYGWIN_ROOT=/cygdrive/c/cygwin/CygWin" >> ~/.profile
-    echo 'export PATH=$PATH:$CYGWIN_ROOT/bin' >> ~/.profile
+    echo 'export PATH=$CYGWIN_ROOT/bin:$PATH' >> ~/.profile
 
     echo '' > ~/.bash_profile
 
-    cmd.exe /c 'setx /m PATH "%PATH%;C:\\cygwin\\CygWin\\bin"'
+    cmd.exe /c 'setx /m PATH "C:\\cygwin\\CygWin\\bin;%PATH%"'
     source ~/.profile
     cd /cygdrive/c/cygwin && cmd.exe /c install.bat