Subject: Re: Current dir in prompt? (fwd)
To: None <amiga@NetBSD.ORG>
From: A RuSH LiKe HeROiN <heroin@broken.ranch.org>
List: amiga
Date: 12/22/1995 19:20:33
I should have posted this to the group to begin with, so here it is as a
reply.
---------- Forwarded message ----------
Date: Fri, 22 Dec 95 7:32:24 MET
From: Gerard Cornu <gerard@ariane.univ-lyon2.fr>
To: A RuSH LiKe HeROiN <heroin@broken.ranch.org>
Subject: Re: Current dir in prompt?
> ok, first off "EXPORT" is a BASH keyword.
> In BASH, you can add this to your .profile. Change th [LSI-BSDi| part to
> whatever you chose.
>
>
> # Prompt
> unalias cd
> set `who am i`
> function back { cd $DIR; }
> function cd2 { DIR=`pwd`; 'cd' $1; }
> PS1='[LSI-BSDi|`hostname`]:$PWD> ';export PS1
> alias cd cd2
>
I will try this tonight, thanks
Gerard.
--
Gerard Cornu. email <gerard@ariane.univ-lyon2.fr>
---
/\_____________________________________/\_____________________________________/\
= http://stained.ranch.org/~heroin/___//\\_____ Amiga 4000/040,32R,540HD,OS3.1 =
`=-=(X)=--=(X)=--=(X)=--=(X)=--=( Signature of )=--=(X)=--=(X)=--=(X)=--=(X)=-='
='\/Finger for PGP Public Key\/ \\ J)eremia(h // _-=(X)=-_ `=
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\\ S.Junken // _-=(SysAdmin, HTML design)=-_ =
=/ "It's not a bug, It's a \\________//RazorWire Online/Talisien Digital=
= -=FEATURE!=-" \__/()\__/ -=(X)=- =
`--=(X)=--=(X)=--=(X)=--=(X)=--=(X)=--=()=--=(X)=--=(X)=--=(X)=--=(X)=--=(X)=--'
About life, kiddo, it's like we've said before: it's
tough and getting tougher every hour. It's no longer
just a US economy; it's global. Life is a war and if
you're a warrior, at least you've got a fighting chance.
-Gary Kline