diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-07-10 17:09:02 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-07-10 17:09:02 +0100 |
commit | 5fe49cc123b1cc363e1cf6305884c64e71f73670 (patch) | |
tree | 071f825e97079c4e9e8cecc879b635f53e5e68e1 /bin | |
parent | b9d5965cc53bfea0d419fe3b320cb43e164b324d (diff) |
Add script for instant change of terminal colors
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/recolor.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/recolor.sh b/bin/recolor.sh new file mode 100755 index 0000000..6e87b1f --- /dev/null +++ b/bin/recolor.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +tr -d ' \t' | sed -n ' +s/.*background:/\x1b]11;/p +s/.*foreground:/\x1b]10;/p +s/.*color\([0-9][^:]*\):/\x1b]4;\1;/p +' | tr \\n \\a |