Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Adding a new-line to the prompt.
- X-seq: zsh-users 10466
- From: "Alex Polite" <notmyprivateemail@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Adding a new-line to the prompt.
- Date: Mon, 3 Jul 2006 19:08:09 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=GFqlej8M8O32z88v8na8xdWTkEaKG3/jLfSiorzvTnVBujo/lDGzISENQjPfK8t75MQcIAuKEWcQabcVe32vW7As+w4lkPEv2qmYA9RXhj0+6B96YIrRbcD48iospba6XS373ncySHGqNZpQHf854cSI+f4JwNavVv2eOUsNr5Q=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Howdy.
This is my first day of zsh after some approx 2300 days of bash. First thing I have to do is recreate my bash prompt which ends in a newline. Tried inserting a newline with "\n". That didn't do the trick. Googled this for about an hour but still couldn't solve it.
This is what I have in .zshrc sofar:
fg_green=$'%{\e[0;32m%}'
fg_blue=$'%{\e[0;34m%}'
fg_cyan=$'%{\e[0;36m%}'
fg_red=$'%{\e[0;31m%}'
fg_brown=$'%{\e[0;33m%}'
fg_purple=$'%{\e[0;35m%}'
fg_light_gray=$'%{\e[0;37m%}'
fg_dark_gray=$'%{\e[1;30m%}'
fg_light_blue=$'%{\e[1;34m%}'
fg_light_green=$'%{\e[1;32m%}'
fg_light_cyan=$'%{\e[1;36m%}'
fg_light_red=$'%{\e[1;31m%}'
fg_light_purple=$'%{\e[1;35m%}'
fg_no_colour=$'%{\e[0m%}'
fg_white=$'%{\e[1;37m%}'
fg_black=$'%{\e[0;30m%}'
lb="%{$fg_light_blue%}[%{$fg_no_colour%}"
rb="%{$fg_light_blue%}]%{$fg_no_colour%}"
red_time="%{$fg_red%}%T%{$fg_no_colour%}"
cyan_user="%{$fg_cyan%}%n%{$fg_no_colour%}"
purple_host="%{$fg_purple%}%M%{$fg_no_colour%}"
green_pwd="%{$fg_green%}%~%{$fg_no_colour%}"
PROMPT="%{$lb%}%{$red_time%}%{$rb%}%{$lb%}%{$cyan_user%}%{$rb%}%{$lb%}%{$purple_host%}%{$rb%}%{$lb%}%{$green_pwd%}%{$rb%} "
--
Alex Polite
http://flosspick.org - finding the right open source
Messages sorted by:
Reverse Date,
Date,
Thread,
Author