aliases/general: move `xt` to `plugin/extract`
parent
18e27b7b84
commit
f076319a96
|
|
@ -42,9 +42,6 @@ if ! _command_exists tree; then
|
||||||
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
|
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Shorten extract
|
|
||||||
alias xt='extract'
|
|
||||||
|
|
||||||
# Display whatever file is regular file or folder
|
# Display whatever file is regular file or folder
|
||||||
function catt() {
|
function catt() {
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
cite about-plugin
|
# shellcheck shell=bash
|
||||||
about-plugin 'one command to extract them all...'
|
about-plugin 'one command to extract them all...'
|
||||||
|
|
||||||
# extract file(s) from compressed status
|
# extract file(s) from compressed status
|
||||||
extract() {
|
function extract() {
|
||||||
local opt
|
local opt
|
||||||
local OPTIND=1
|
local OPTIND=1
|
||||||
while getopts "hv" opt; do
|
while getopts "hv" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
h)
|
h)
|
||||||
cat <<End-Of-Usage
|
cat <<EOU
|
||||||
Usage: ${FUNCNAME[0]} [option] <archives>
|
Usage: ${FUNCNAME[0]} [option] <archives>
|
||||||
options:
|
options:
|
||||||
-h show this message and exit
|
-h show this message and exit
|
||||||
-v verbosely list files processed
|
-v verbosely list files processed
|
||||||
End-Of-Usage
|
EOU
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
v)
|
v)
|
||||||
|
|
@ -71,3 +71,7 @@ End-Of-Usage
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Shorten extract
|
||||||
|
alias xt='extract'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue