quickread: use less
This commit is contained in:
parent
c9827f2dcd
commit
51f11ba994
1 changed files with 6 additions and 1 deletions
|
@ -14,7 +14,12 @@ function quickread() {
|
|||
cd $DEFAULT_PATH
|
||||
if [ -e $notename ]; then
|
||||
clear
|
||||
cat $notename
|
||||
|
||||
if [ "$(cat $notename | wc -l)" -ge 25 ];then
|
||||
cat $notename | less
|
||||
else
|
||||
cat $notename
|
||||
fi
|
||||
|
||||
else
|
||||
clear
|
||||
|
|
Loading…
Reference in a new issue