From cd759837e67113f8578e20e69c6a2ce21ab0647a Mon Sep 17 00:00:00 2001 From: Mario Alegre Date: Fri, 7 Aug 2020 12:59:21 -0400 Subject: [PATCH] added a few new commands --- dir | 2 ++ rsyn | 2 ++ shw | 10 ++++++++++ 3 files changed, 14 insertions(+) create mode 100755 dir create mode 100755 rsyn create mode 100755 shw 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