On Sep 2, 1:40 am, Gary Johnson <garyj...@spocom.com> wrote:
> On 2012-09-01, AndyHancock wrote:
> > let &shell='c:\cygwin\bin\bash.exe ' .
> > \ --rcfile c:/cygwin/home/' . $USERNAME . '/.bashrc -i'
>
> Windows has to understand the path to the shell executable, but the
> argument to --rcfile is interpreted by Cygwin's bash, which only
> officially supports POSIX paths, so it should be something like
> this:
>
> /home/$USERNAME/.bashrc
I assume that taking out c:/cygwin would take care of the situations
in which cygwin is installed elsewhere.
Interesting that
let &shell='c:\cygwin\bin\bash.exe
\ --rcfile /home/'.$USERNAME.'/.bashrc -i'
works but
let &shell='c:\cygwin\bin\bash.exe
\ --rcfile /home/$USERNAME/.bashrc -i'
does not. If I do
!!echo $USERNAME
bash returns the correct username comes back. That would seem to
indicate that the 2nd shell setting above should work too. A mystery
for another day...
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Monday, September 3, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment