• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Coding with VIM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding with VIM


  • Subject: Re: Coding with VIM
  • From: Justin Walker <email@hidden>
  • Date: Fri, 30 Jan 2004 13:15:58 -0800

On Friday, January 30, 2004, at 11:17 AM, Markus Hitter wrote:

Am 30.01.2004 um 18:22 schrieb Robert Denton:

I have some bash questions for you all:
[snip]
However, I cannot discover where to set the initial working directory, which is /Users/<username>.

Try a

	cd /path/to/wherever/i/want

in your bashrc or .bashrc

This won't work if you are executing your 'rc' file as a script that terminates. The 'cd' only has effect for the process where it is executed (and subprocesses).


The usual way to handle this is to treat the script as input commands; for example, the following shows the difference:

$ pwd
/tmp
$ cat foo
cd ..
$ sh foo
$ pwd
/tmp
$ . foo
$ pwd
/
$

Whether this will work at startup/login depends entirely on your shell and the other startup scripts invoked. You could try to force it by ending your startup script with the 'cd' command, followed by 'exec /bin/bash'. If you do that, of course, you have to be wary of recursion :-}.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large  *
Institute for General Semantics        |    Men are from Earth.
                                       |    Women are from Earth.
                                       |       Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Coding with VIM
      • From: Markus Hitter <email@hidden>
    • Re: Coding with VIM
      • From: Kevin Grant <email@hidden>
References: 
 >Re: Coding with VIM (From: Markus Hitter <email@hidden>)

  • Prev by Date: Re: Porting XML app from Windows to Mac
  • Next by Date: WChar launch problems in 10.2??
  • Previous by thread: Re: Coding with VIM
  • Next by thread: Re: Coding with VIM
  • Index(es):
    • Date
    • Thread