From: Vincent Le Gallic Date: Sun, 13 Oct 2013 17:18:08 +0000 (+0200) Subject: [.bashrc] prompt # en root X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=3a3a3a4e3009bfbe6268dc61ac99a4d0837d0db9;p=config-20-100.git [.bashrc] prompt # en root \$ était entre double-quotes, donc tout de suite interprété en $ --- diff --git a/.bashrc b/.bashrc index d688ea1..c458a2f 100644 --- a/.bashrc +++ b/.bashrc @@ -224,7 +224,7 @@ function prompt_command # il faut changer $((31+($?==0)*6)) si vous y tenez vraiment et que vous comprenez ce que vous faites ERR='[ \[\e[1;$((31+($?==0)*6))m\]$?'${line_color_prompt}' ]'$MINUS_CHAR DATE="( ${date_color}\D{%H:%M:%S}${line_color_prompt} )" - PROMPT="${username_color}\u${symbols_color}@${host_color}\h ${symbols_color}\$ ${nocolor_prompt}" + PROMPT="${username_color}\u${symbols_color}@${host_color}\h ${symbols_color}\\\$ ${nocolor_prompt}" PS1=$TITLE${line_color_prompt}$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR$VCS_info${line_color_prompt}$POST_DIR$ERR'\n'$PROMPT else DIR="< "$DIR" >"