Use $'' syntax to get rid of \033 in flavor of \e.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 13 Feb 2017 22:09:01 +0200
changeset 828 235bf6715fc6
parent 827 4bd348e3422d
child 829 ccd4c8b35330
Use $'' syntax to get rid of \033 in flavor of \e.
.bashrc
--- a/.bashrc	Mon Feb 13 17:11:40 2017 +0200
+++ b/.bashrc	Mon Feb 13 22:09:01 2017 +0200
@@ -13,8 +13,8 @@
 PS2='> '
 case "$TERM" in
   xterm*|eterm-color|screen|linux)
-    PS1='\n\033[36m==============================================================================\r$?|\033[31m\u\033[35m@\h\033[0m\033[36m \w \n\[\033[1m\033[31m\]bash#\[\033[0m\] '
-    PS2='\[\033[32m\]> \[\033[0m\]'
+    PS1=$'\n\e[36m==============================================================================\r$?|\e[31m\u\e[35m@\h\e[0m\e[36m \w \n\[\e[1m\e[31m\]bash#\[\e[0m\] '
+    PS2=$'\[\e[32m\]> \[\e[0m\]'
   ;;
 esac