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 st...@ibctech.ca 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

Re: Changing my login directory

2009-06-22 Thread Karl Vogel
On Mon, 22 Jun 2009 11:12:20 +0200, Ruben de Groot mai...@bzerk.org 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

Re: Changing my login directory

2009-06-19 Thread Karl Vogel
On Wed, 17 Jun 2009 21:13:32 -0400, Steve Bertrand st...@ibctech.ca 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

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: ~/devel % ll

Re: Changing my login directory

2009-06-18 Thread Polytropon
On Thu, 18 Jun 2009 12:33:24 -0400, Glen Barber glen.j.bar...@gmail.com 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]

Re: Changing my login directory

2009-06-18 Thread Glen Barber
On Thu, Jun 18, 2009 at 12:59 PM, Polytroponfree...@edvax.de wrote: On Thu, 18 Jun 2009 12:33:24 -0400, Glen Barber glen.j.bar...@gmail.com wrote: Thanks for that little tidbit in return -- I've been trying to figure how prompt settings. :) See those:        set promptchars = %#        

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

Re: Changing my login directory

2009-06-17 Thread Glen Barber
Hi, Steve On Wed, Jun 17, 2009 at 9:13 PM, Steve Bertrandst...@ibctech.ca 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 '~'

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 Bertrandst...@ibctech.ca 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

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 there's a more