Changing my login directory
steve at ibctech.ca
Thu Jun 18 01:24:21 UTC 2009
Glen Barber wrote:
> Hi, Steve
> On Wed, Jun 17, 2009 at 9:13 PM, Steve Bertrand<steve at 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
>> 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
>> native approach to get what I'm after.
> You can always add:
> cd $HOME/devel/something
> to $HOME/.login
%echo "cd /home/steve/devel" >> /home/steve/.login
...re-connect via SSH:
Beautiful! That was exactly what I was after.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3233 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090618/30fcc210/smime.bin
More information about the freebsd-questions