aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lolcat.bashrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/lolcat.bashrc b/lolcat.bashrc
new file mode 100644
index 0000000..62284b3
--- /dev/null
+++ b/lolcat.bashrc
@@ -0,0 +1,6 @@
+
+ESC=$(echo -e '\033')
+SOH=$(echo -e '\001')
+STX=$(echo -e '\002')
+PS1_color_wrap='s/'$ESC'\\[[[:digit:];]*m/'$SOH'&'$STX'/g'
+PS1="\$(glolcat <<< \"$PS1_colorless\" | sed '$PS1_color_wrap')"