Changing my login directory

Steve Bertrand steve at ibctech.ca
Thu Jun 18 02:02:20 UTC 2009


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
>>> 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

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

total 16
drwxr-xr-x   7 steve  steve  512 Jun 17 13:06 EagleLedger
drwxr-xr-x   6 steve  steve  512 Jun 17 17:01 EagleSanity
drwxr-xr-x   7 steve  steve  512 Jun 17 16:00 EagleTransac
drwxr-xr-x   5 steve  steve  512 Jun 17 13:09 EagleUser
drwxr-xr-x   4 steve  steve  512 Jun 12 13:20 RadiusMgmt
drwxr-xr-x   2 steve  steve  512 Jun 17 12:48 dump
drwxr-xr-x  10 steve  steve  512 Jun 17 16:37 eagleaccounting
drwxr-xr-x   2 steve  steve  512 Jun 15 11:47 examples

~/devel % cd EagleTransac/
EagleTransac %

...that makes it a *lot* easier when I'm making changes[1].

Steve

[1]. Some may wonder why I don't have all Perl modules under one Eagle
umbrella. The only reason is because SVN stores rev numbers globally,
which throws off the package management system. I need to know which
version of which package is installed.

I've got ideas for writing something that aggregates the revs so I can
have all of ::these in one location, but during development, I need
version separation without having to fix version issues.

The nice thing is, is that all modules are Eagle::, so consolidating
won't be difficult later (ie won't affect APIs).



-------------- 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 : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090618/0d5ebc45/smime.bin


More information about the freebsd-questions mailing list