]> gitweb.pimeys.fr Git - config-20-100.git/commitdiff
[.bashrc] prompt # en root
authorVincent Le Gallic <legallic@crans.org>
Sun, 13 Oct 2013 17:18:08 +0000 (19:18 +0200)
committerVincent Le Gallic <legallic@crans.org>
Sun, 13 Oct 2013 17:18:53 +0000 (19:18 +0200)
\$ était entre double-quotes, donc tout de suite interprété en $

.bashrc

diff --git a/.bashrc b/.bashrc
index d688ea1dc94ee69e79e54d50f6ae5425b77ed912..c458a2f6f58b5a290e1eb8f0225dd2c54b6ef368 100644 (file)
--- 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" >"