diff --git a/dir b/dir new file mode 100755 index 0000000..ff20fec --- /dev/null +++ b/dir @@ -0,0 +1,2 @@ +#!/bin/bash +ls -lhAF --color=auto "$@" diff --git a/rsyn b/rsyn new file mode 100755 index 0000000..4e4466a --- /dev/null +++ b/rsyn @@ -0,0 +1,2 @@ +#!/bin/bash +rsync -vaSH "$@" diff --git a/shw b/shw new file mode 100755 index 0000000..0a2d139 --- /dev/null +++ b/shw @@ -0,0 +1,10 @@ +#!/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