1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 06:44:22 +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
set_color red
echo -n -- "$argv[1] "
echo -n -- "$argv[1] " 1>&2
set_color reset
set_color --bold brred
echo -n -- "$argv[2]"
echo -n -- "$argv[2]" 1>&2
set_color reset
set_color red
echo -n -- " $argv[3]"
echo -n -- " $argv[3]" 1>&2
echo
set_color reset
end

View file

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

View file

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

View file

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

View file

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

View file

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