1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 15:08:01 +00:00

Ignore case in filenames

Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
Ivan Alejandro 2014-04-09 00:48:07 -03:00 committed by Sorin Ionescu
parent 5791c07d48
commit 86ba5b69d3
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ while (( $# > 0 )); do
continue continue
fi fi
case "$1" in case "$1:l" in
(*.tar.gz|*.tgz) tar t${verbose:+v}vzf "$1" ;; (*.tar.gz|*.tgz) tar t${verbose:+v}vzf "$1" ;;
(*.tar.bz2|*.tbz|*.tbz2) tar t${verbose:+v}jf "$1" ;; (*.tar.bz2|*.tbz|*.tbz2) tar t${verbose:+v}jf "$1" ;;
(*.tar.xz|*.txz) tar --xz --help &> /dev/null \ (*.tar.xz|*.txz) tar --xz --help &> /dev/null \

View File

@ -37,7 +37,7 @@ while (( $# > 0 )); do
success=0 success=0
file_name="${1:t}" file_name="${1:t}"
extract_dir="${file_name:r}" extract_dir="${file_name:r}"
case "$1" in case "$1:l" in
(*.tar.gz|*.tgz) tar xvzf "$1" ;; (*.tar.gz|*.tgz) tar xvzf "$1" ;;
(*.tar.bz2|*.tbz|*.tbz2) tar xvjf "$1" ;; (*.tar.bz2|*.tbz|*.tbz2) tar xvjf "$1" ;;
(*.tar.xz|*.txz) tar --xz --help &> /dev/null \ (*.tar.xz|*.txz) tar --xz --help &> /dev/null \