diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-10-08 22:50:59 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-10-08 22:50:59 -0400 |
| commit | 2240d4ca9daf54681e8a98402d9f1ff27481620f (patch) | |
| tree | ec5de80e783d4ea5caf959833caa8f3810bf680e | |
| parent | 3daed283eae4b0ed20bfe206b7d793b4b26326ef (diff) | |
| download | dotfiles-2240d4ca9daf54681e8a98402d9f1ff27481620f.tar.gz dotfiles-2240d4ca9daf54681e8a98402d9f1ff27481620f.tar.xz | |
Added an lolcat PS1 for bash
| -rw-r--r-- | lolcat.bashrc | 6 |
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')" |
