Change colors of command execution result
This commit is contained in:
parent
8fa44c85ed
commit
85e3ab6994
@ -91,7 +91,7 @@
|
|||||||
cleareol="\e[K"
|
cleareol="\e[K"
|
||||||
colorreset="\e[1;0m"
|
colorreset="\e[1;0m"
|
||||||
if [ ! -z "$cmd" ]; then
|
if [ ! -z "$cmd" ]; then
|
||||||
printf "$bgcolor $cmdstat $retval $colorreset\n"
|
printf "$fgcolor$cmdstat $retval$colorreset\n"
|
||||||
if [[ $cmd_time -gt 3 ]]; then
|
if [[ $cmd_time -gt 3 ]]; then
|
||||||
${pkgs.libnotify}/bin/notify-send -a command_complete -i utilities-terminal -u low "$cmdstat $cmd" "in `date -u -d @$cmd_time +'%T'`"
|
${pkgs.libnotify}/bin/notify-send -a command_complete -i utilities-terminal -u low "$cmdstat $cmd" "in `date -u -d @$cmd_time +'%T'`"
|
||||||
echo -e '\a'
|
echo -e '\a'
|
||||||
|
Loading…
Reference in New Issue
Block a user