Change colors of command execution result

This commit is contained in:
Alexander Bantyev 2022-08-25 15:40:53 +04:00
parent 8fa44c85ed
commit 85e3ab6994
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -91,7 +91,7 @@
cleareol="\e[K"
colorreset="\e[1;0m"
if [ ! -z "$cmd" ]; then
printf "$bgcolor $cmdstat $retval $colorreset\n"
printf "$fgcolor$cmdstat $retval$colorreset\n"
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'`"
echo -e '\a'