Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: regarding login prompt

arnuld <geek.arnuld@xxxxxxxxx> writes:

>> On 7/13/07, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
>> > arnuld <geek.arnuld@xxxxxxxxx>:
>> > hey Peter, how can i make it coloured like i have in BASH:
>> >
>> > {%n@%m %1~}   -- > red colour
>> >
>> > %#                       --> blue colour
>> See <http://zshwiki.org/home/config/prompt>.
> this is from my .zshrc:
> PS1="{%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m
> %{$fg[yellow]%}%1~ %{$reset_color%}% }%# "
> and i changed my shell:   "chsh -s /bin/zsh arnuld"
> but i do not see any colored prompt :(

Did you 
source .zshrc

Try that.  Also, are you using a terminal emulator?  Pretty often the
terminal emulator inherits its login environment from the environment
of the Window manager you've logged in under.  Source should do it,
otherwise log out entirely or start a new session.

Your blog is hilarious ;)


Joel J. Adamson
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

*Getting unexpected output from Word?

*Try LaTeX: it's free, easy and professional

The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this information in error, please contact the Compliance HelpLine at 800-856-1983 and properly dispose of this information.

Messages sorted by: Reverse Date, Date, Thread, Author