summaryrefslogtreecommitdiffstats
path: root/.config/lf
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-10-28 08:41:43 -0400
committerLuke Smith <luke@lukesmith.xyz>2023-10-28 08:41:43 -0400
commit0cc589bcadf5a8ce6aee2706e749fee878ccca75 (patch)
tree8cbd17151ea65bcaf73085899917ac66d1360122 /.config/lf
parent6ba48b27339d47732519476333712bb4b2cde87f (diff)
parent1e3adf9c03b2e563e81a13d6907ffd5ca20b887a (diff)
downloadeibhear-0cc589bcadf5a8ce6aee2706e749fee878ccca75.tar.gz
eibhear-0cc589bcadf5a8ce6aee2706e749fee878ccca75.tar.zst
eibhear-0cc589bcadf5a8ce6aee2706e749fee878ccca75.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.config/lf')
-rw-r--r--.config/lf/lfrc17
1 files changed, 16 insertions, 1 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 56a4182..e104591 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -58,7 +58,22 @@ cmd extract ${{
printf "%s\n\t" "$fx"
printf "extract?[y/N]"
read ans
- [ $ans = "y" ] && aunpack $fx
+ [ $ans = "y" ] && {
+ case $fx in
+ *.tar.bz2) tar xjf $fx ;;
+ *.tar.gz) tar xzf $fx ;;
+ *.bz2) bunzip2 $fx ;;
+ *.rar) unrar e $fx ;;
+ *.gz) gunzip $fx ;;
+ *.tar) tar xf $fx ;;
+ *.tbz2) tar xjf $fx ;;
+ *.tgz) tar xzf $fx ;;
+ *.zip) unzip $fx ;;
+ *.Z) uncompress $fx ;;
+ *.7z) 7z x $fx ;;
+ *.tar.xz) tar xf $fx ;;
+ esac
+ }
}}
cmd delete ${{