Handy scripts for personal use
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
162 B

#!/bin/bash
# if $1 is a text file, less it
if file "$1" | grep -q text; then
less -FRX "$1"
# otherwise, just dir it
else
ls -lhAF --color=auto "$@"
fi