some ksh aliases and functions
bamford
bamford at ihuxl.UUCP
Fri Oct 12 05:21:34 AEST 1984
Here is a function to set the prompt to the current directory. Very nice
if you tend to get lost easily.
----------------------------------------------------------------------
function fancy_cd
{
if [ $# -ne 0 ]
then
cd $*
else
cd
fi
PS1="${PWD} "
}
alias cd=fancy_cd
----------------------------------------------------------------------
The function MUST be defined before the alias.
Harold Bamford
AT&T Bell Labs
(cornet) 8-367-1866
Naperville, Ill
(312) 979-1866
--
Harold Bamford
AT&T Bell Labs
(cornet) 8-367-1866
Naperville, Ill
(312) 979-1866
More information about the Comp.sources.unix
mailing list