commit 8af5fa718ab3ea26c866a7c994104a63ea3dc2e6
parent fb64bdfe8ab916ce39ec959c5e3f7b8f65529ea3
Author: Jacob R. Edwards <n/a>
Date: Fri, 3 Dec 2021 19:08:50 -0800
Add see function to display directory or file contents
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/local/rc/lib/profile b/local/rc/lib/profile
@@ -66,6 +66,12 @@ fn rm { 9 rm $* }
# Etc.
fn fns { whatis `{ printenv | awk -F '[#=]' '/^fn#/ { print $2 }' } }
fn ths { 9 dict -d roget $* }
+fn see {
+ if (test -d $1)
+ ls $1
+ if not
+ cat $1
+}
# Run Daemons with a Full Environment
{