Changing my login directory

Steve Bertrand steve at
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> 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 '~' 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
%exit via SSH:



Beautiful! That was exactly what I was after.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3233 bytes
Desc: S/MIME Cryptographic Signature
Url :

More information about the freebsd-questions mailing list