]> 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:27:14 +0000 (19:27 +0200)
\$ était entre double-quotes, donc tout de suite interprété en $

.bashrc

diff --git a/.bashrc b/.bashrc
index bf7e6d73d895816e53f5a0e9c3a9f3b00dbf1928..225aa9ab826fa93980abc61b4804d8bfc874317c 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" >"