syntax improvements
This commit is contained in:
4
bashcols
4
bashcols
@@ -1,6 +1,6 @@
|
||||
# vim: syntax=bash:
|
||||
|
||||
eval "reset_esc=\"\\e[0m\""
|
||||
reset_esc='\e[0m'
|
||||
|
||||
# applies the given color id, executes the command, then resets the color
|
||||
function colout() {
|
||||
@@ -49,7 +49,7 @@ function dispcollist() {
|
||||
function colthis {
|
||||
local name="$1"
|
||||
shift
|
||||
eval "printf \"\${${name}_esc}$@$reset_esc\""
|
||||
eval "printf \"%s\" \"\${${name}_esc}$@$reset_esc\""
|
||||
}
|
||||
|
||||
# default colors
|
||||
|
||||
Reference in New Issue
Block a user