aliases/general: move `xt` to `plugin/extract`

pull/2095/head
John D Pell 2022-02-17 21:54:15 -08:00 committed by John D Pell
parent 18e27b7b84
commit f076319a96
2 changed files with 8 additions and 7 deletions

View File

@ -42,9 +42,6 @@ if ! _command_exists tree; then
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
fi
# Shorten extract
alias xt='extract'
# Display whatever file is regular file or folder
function catt() {
for i in "$@"; do

View File

@ -1,19 +1,19 @@
cite about-plugin
# shellcheck shell=bash
about-plugin 'one command to extract them all...'
# extract file(s) from compressed status
extract() {
function extract() {
local opt
local OPTIND=1
while getopts "hv" opt; do
case "$opt" in
h)
cat <<End-Of-Usage
cat <<EOU
Usage: ${FUNCNAME[0]} [option] <archives>
options:
-h show this message and exit
-v verbosely list files processed
End-Of-Usage
EOU
return
;;
v)
@ -71,3 +71,7 @@ End-Of-Usage
shift
done
}
# Shorten extract
alias xt='extract'