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'"
|
||||
fi
|
||||
|
||||
# Shorten extract
|
||||
alias xt='extract'
|
||||
|
||||
# Display whatever file is regular file or folder
|
||||
function catt() {
|
||||
for i in "$@"; do
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue