+ extract.sh
This commit is contained in:
12
dots/lf/lfrc
12
dots/lf/lfrc
@@ -94,17 +94,7 @@ cmd trash %trash-put $fx
|
||||
|
||||
# extract the current file with the right command
|
||||
# (xkcd link: https://xkcd.com/1168/)
|
||||
cmd extract ''${{
|
||||
set -f
|
||||
case $f in
|
||||
*.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf $f;;
|
||||
*.tar.gz|*.tgz) tar xzvf $f;;
|
||||
*.tar.xz|*.txz) tar xJvf $f;;
|
||||
*.zip) unzip $f;;
|
||||
*.rar) unrar x $f;;
|
||||
*.7z) 7z x $f;;
|
||||
esac
|
||||
}}
|
||||
cmd extract %extract.sh "$f"
|
||||
|
||||
# compress current file or selected files with tar and gunzip
|
||||
cmd tar ''${{
|
||||
|
||||
Reference in New Issue
Block a user