1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 14:54:23 +00:00

Log to stderr

This commit is contained in:
Steffo 2024-11-27 13:47:30 +01:00
parent dc1c532cc4
commit 2b9ac80390
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
6 changed files with 18 additions and 18 deletions

View file

@ -4,15 +4,15 @@ function log-e
end end
set_color red set_color red
echo -n -- "$argv[1] " echo -n -- "$argv[1] " 1>&2
set_color reset set_color reset
set_color --bold brred set_color --bold brred
echo -n -- "$argv[2]" echo -n -- "$argv[2]" 1>&2
set_color reset set_color reset
set_color red set_color red
echo -n -- " $argv[3]" echo -n -- " $argv[3]" 1>&2
echo echo
set_color reset set_color reset
end end

View file

@ -5,17 +5,17 @@ function log-f
set_color --background red set_color --background red
set_color brwhite set_color brwhite
echo -n -- "$argv[1] " echo -n -- "$argv[1] " 1>&2
set_color reset set_color reset
set_color --background brred set_color --background brred
set_color --bold brwhite set_color --bold brwhite
echo -n -- "$argv[2]" echo -n -- "$argv[2]" 1>&2
set_color reset set_color reset
set_color --background red set_color --background red
set_color brwhite set_color brwhite
echo -n -- " $argv[3]" echo -n -- " $argv[3]" 1>&2
echo echo
set_color reset set_color reset
end end

View file

@ -4,15 +4,15 @@ function log-i
end end
set_color cyan set_color cyan
echo -n -- "$argv[1] " echo -n -- "$argv[1] " 1>&2
set_color reset set_color reset
set_color --bold brcyan set_color --bold brcyan
echo -n -- "$argv[2]" echo -n -- "$argv[2]" 1>&2
set_color reset set_color reset
set_color cyan set_color cyan
echo -n -- " $argv[3]" echo -n -- " $argv[3]" 1>&2
echo echo
set_color reset set_color reset
end end

View file

@ -4,15 +4,15 @@ function log-s
end end
set_color green set_color green
echo -n -- "$argv[1] " echo -n -- "$argv[1] " 1>&2
set_color reset set_color reset
set_color --bold brgreen set_color --bold brgreen
echo -n -- "$argv[2]" echo -n -- "$argv[2]" 1>&2
set_color reset set_color reset
set_color green set_color green
echo -n -- " $argv[3]" echo -n -- " $argv[3]" 1>&2
echo echo
set_color reset set_color reset
end end

View file

@ -4,15 +4,15 @@ function log-t
end end
set_color purple set_color purple
echo -n -- "$argv[1] " echo -n -- "$argv[1] " 1>&2
set_color reset set_color reset
set_color --bold brpurple set_color --bold brpurple
echo -n -- "$argv[2]" echo -n -- "$argv[2]" 1>&2
set_color reset set_color reset
set_color purple set_color purple
echo -n -- " $argv[3]" echo -n -- " $argv[3]" 1>&2
echo echo
set_color reset set_color reset
end end

View file

@ -4,15 +4,15 @@ function log-w
end end
set_color yellow set_color yellow
echo -n -- "$argv[1] " echo -n -- "$argv[1] " 1>&2
set_color reset set_color reset
set_color --bold bryellow set_color --bold bryellow
echo -n -- "$argv[2]" echo -n -- "$argv[2]" 1>&2
set_color reset set_color reset
set_color yellow set_color yellow
echo -n -- " $argv[3]" echo -n -- " $argv[3]" 1>&2
echo echo
set_color reset set_color reset
end end