Re: Changing my login directory

2009-06-22 Thread Karl Vogel
>> On Mon, 22 Jun 2009 11:12:20 +0200, >> Ruben de Groot said: R> No need for any external programs. The following shell script [accepts R> one key, no need to hit return] R> % more readkey.sh R> echo -n "Press any key: " R> stty cbreak -echo R> KEY=$(dd bs=1 count=1 2>/dev/null) R> stty -c

Re: Changing my login directory

2009-06-22 Thread Ruben de Groot
On Fri, Jun 19, 2009 at 03:05:55PM -0400, Karl Vogel typed: > >> On Wed, 17 Jun 2009 21:13:32 -0400, > >> Steve Bertrand said: > > S> I've got a couple of jails now that I use exclusively for Perl > S> development. As soon as I log into the box via SSH, my first command is > S> _always_ "cd dev

Re: Changing my login directory

2009-06-19 Thread Karl Vogel
>> On Wed, 17 Jun 2009 21:13:32 -0400, >> Steve Bertrand said: S> I've got a couple of jails now that I use exclusively for Perl S> development. As soon as I log into the box via SSH, my first command is S> _always_ "cd devel/something". I'd like to make it so that '~' remains S> /home/steve,

Re: Changing my login directory

2009-06-18 Thread Glen Barber
On Thu, Jun 18, 2009 at 12:59 PM, Polytropon wrote: > On Thu, 18 Jun 2009 12:33:24 -0400, Glen Barber > wrote: >> Thanks for that little tidbit in return -- I've been trying to >> figure how prompt settings. :) > > See those: > >        set promptchars = "%#" >        set prompt = "%...@%m:%~%# "

Re: Changing my login directory

2009-06-18 Thread Polytropon
On Thu, 18 Jun 2009 12:33:24 -0400, Glen Barber wrote: > Thanks for that little tidbit in return -- I've been trying to > figure how prompt settings. :) See those: set promptchars = "%#" set prompt = "%...@%m:%~%# " Or even: set prompt = "[%T] %...@%m:%~%# " set

Re: Changing my login directory

2009-06-18 Thread Glen Barber
Steve Bertrand wrote: > I'd like to add for archive purposes, that with csh, adding the > following within the 'if' block in .cshrc will provide a prompt that > includes the current working directory, without the full path (which I > also wanted: > > set prompt = "%c1 % " > > Output: > > ~/deve

Re: Changing my login directory

2009-06-17 Thread Steve Bertrand
Steve Bertrand wrote: > Glen Barber wrote: >>> I'd like to make it so that '~' remains /home/steve, but when I log in, >>> I would prefer to be dropped immediately into /home/steve/devel. >>> >>> csh is (always) my shell, and I'm on 7.2. >>> >>> Instead of writing a login script, I'm wondering if

Re: Changing my login directory

2009-06-17 Thread Steve Bertrand
Glen Barber wrote: > Hi, Steve > > On Wed, Jun 17, 2009 at 9:13 PM, Steve Bertrand wrote: >> Hi everyone, >> >> I've got a couple of jails now that I use exclusively for Perl development. >> >> As soon as I log into the box via SSH, my first command is _always_ "cd >> devel/something". >> >> I'd l

Re: Changing my login directory

2009-06-17 Thread Glen Barber
Hi, Steve On Wed, Jun 17, 2009 at 9:13 PM, Steve Bertrand wrote: > Hi everyone, > > I've got a couple of jails now that I use exclusively for Perl development. > > As soon as I log into the box via SSH, my first command is _always_ "cd > devel/something". > > I'd like to make it so that '~' remain

Changing my login directory

2009-06-17 Thread Steve Bertrand
Hi everyone, I've got a couple of jails now that I use exclusively for Perl development. As soon as I log into the box via SSH, my first command is _always_ "cd devel/something". I'd like to make it so that '~' remains /home/steve, but when I log in, I would prefer to be dropped immediately into