aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-10-10 19:09:18 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-10-10 19:09:18 -0400
commit17dca4c0f71ba761fd711ef52d033af434d05778 (patch)
tree6629c7b8f12a412976218be2f4d01659a1be26e8
parentb69319781b36496ddaf21cb3647173b16e4ae629 (diff)
parent2240d4ca9daf54681e8a98402d9f1ff27481620f (diff)
downloaddotfiles-17dca4c0f71ba761fd711ef52d033af434d05778.tar.gz
dotfiles-17dca4c0f71ba761fd711ef52d033af434d05778.tar.xz
Merge branch 'master' of rygel.us:~/mitch/dotfiles
-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')"