Initial commit

This commit is contained in:
Alexander Gehrke 2019-09-30 14:49:14 +02:00
commit cefd40b6dc
31 changed files with 1028 additions and 0 deletions

14
bin/autoless Executable file
View file

@ -0,0 +1,14 @@
#!/bin/zsh
if [[ -n "$@" ]]; then
out=$(<"$@")
else
out=$(cat)
fi
((lim=$LINES-1))
numlines=$(echo $out | wc -l)
if (( $numlines > $lim ))
then
echo $out | less -R
else
echo $out
fi