gmcclure382 / stexbar

Automatically exported from code.google.com/p/stexbar
0 stars 0 forks source link

Start cygwin bash in selected folder #98

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This command starts the cygwin bash in the selected folder. The command 
works similar to the console command.

Assumptions to have command working:
1) Cygwin is installed in "c:\cygwin"
2) Make sure, the /etc/profile file checks CHERE_INVOKING (see below) 
before changing to the $HOME directory. This should be the default, but in 
some installations I did'nt found the check. So I just mention it here for 
completeness. 

CHERE_INVOKING check in /etc/profile (at the very end of file):
#Make sure we start in home unless invoked by CHERE
if [ ! -z "${CHERE_INVOKING}" ]; then
  unset CHERE_INVOKING
else
  cd "${HOME}"
fi

Command definitions for StExBar:
Name: Bash
Icon: C:\cygwin\cygwin.ico
Command line: c:\cygwin\bin\bash -c "cd '%curdir'; export 
CHERE_INVOKING=1; exec /bin/bash --login -i"

Original issue reported on code.google.com by isi.isen...@gmail.com on 28 Oct 2009 at 7:58

GoogleCodeExporter commented 8 years ago

Original comment by tortoisesvn on 28 Oct 2009 at 5:45