Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PROMPT
- X-seq: zsh-users 2396
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: PROMPT
- Date: Thu, 17 Jun 1999 16:42:44 +0000
- In-reply-to: <Pine.LNX.4.10.9906171727180.11755-100000@xxxxxxxxxxxxxxx>
- In-reply-to: <9906171520.AA21502@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.10.9906171727180.11755-100000@xxxxxxxxxxxxxxx> <9906171520.AA21502@xxxxxxxxxxxxxxxxx>
On Jun 17, 5:32pm, Oliver Grimm wrote:
} Subject: Re: PROMPT
}
} precmd ()
} {
} if test "$UID" = 0; then
} PS1="%m:`pwd -r` # "
} else
} PS1="%n@%m:`pwd -r` > "
} fi
} }
}
} this defines a function that is called every time anything is executed
} by the shell, and so also make a change of PROMPT impossible.
}
} I wonder if this was intended by the designer of the profile ?
I doubt that the side-effect of preventing the user from customizing his
prompt was intentional.
On Jun 17, 5:20pm, Peter Stephenson wrote:
} Subject: Re: PROMPT
}
} I can hardly believe it.
}
} setopt chaselinks
} PS1='%n@%m:%/'
For completeness:
PS1='%(#..%n@)%m:%/%(#.#.>) '
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author