From 3460ad6b970640018fea970cea13088550d36996 Mon Sep 17 00:00:00 2001 From: k1574 Date: Sun, 5 Sep 2021 08:25:02 +0500 Subject: [PATCH] New functions for profile file. --- profile | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/profile b/profile index a31a26c..b32dffd 100644 --- a/profile +++ b/profile @@ -178,16 +178,25 @@ fn uprofile { . $profile } -fn m { - for(i in $*){ - man $man/$i | less - } -} - fn noerr { {$*} >[2]/dev/null } +fn nostd { + {$*} >[1]/dev/null +} + +fn m { + for(i in $*){ + if(test -r $man/$i){ + man $man/$i | less + } + if not { + man $i | less + } + } +} + # Setting enviroment. if(test -r $setenv){ . $setenv