config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 425e2f8efe5d7f40ac5aced6c3fc076cf3f6a893
parent 006bca24c8c8c35d4ba4fcfdb2becb7dbdad2883
Author: Jacob R. Edwards <n/a>
Date:   Wed,  2 Mar 2022 14:03:34 -0800

Remove duplicates from rc fns function output

Diffstat:
Mlocal/rc/lib/profile | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/local/rc/lib/profile b/local/rc/lib/profile @@ -58,10 +58,13 @@ fn f { $EDITOR $* } fn g { git $* } fn ls { 9 ls $* } fn rm { 9 rm $* } +fn ths { 9 dict -d roget $* } # Etc. -fn fns { whatis `{ printenv | awk -F '[#=]' '/^fn#/ { print $2 }' } } -fn ths { 9 dict -d roget $* } +fn fns { + whatis `{ printenv | awk -F '[#=]' '/^fn#/ { print $2 }' } | + sort -u +} # Run Daemons with a Full Environment {