Browse Source

added a few new commands

master
Mario Alegre 5 years ago
parent
commit
cd759837e6
  1. 2
      dir
  2. 2
      rsyn
  3. 10
      shw

2
dir

@ -0,0 +1,2 @@
#!/bin/bash
ls -lhAF --color=auto "$@"

2
rsyn

@ -0,0 +1,2 @@
#!/bin/bash
rsync -vaSH "$@"

10
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
Loading…
Cancel
Save