Skip to content

Commit

Permalink
fish: use ouch instead of file-roller to extract since file-roller ta…
Browse files Browse the repository at this point in the history
…kes too long to exit
  • Loading branch information
c02y committed Sep 23, 2024
1 parent fbd8d12 commit d693de4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fish/.config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,11 @@ function tars -d 'tar extract(x)/list(l, by default)/create(c, add extra arg to
zips.py -l $ARGV
else if set -q _flag_x
if set -q _flag_o # extract contents into $argv[2] directory, no new dir
command -sq file-roller; and file-roller -h $ARGV -e $argv[2]; or unzip $ARGV -d $argv[2]
# command -sq file-roller; and file-roller -h $ARGV -e $argv[2]; or unzip $ARGV -d $argv[2]
command -sq ouch; and ouch d $ARGV -d $argv[2]; or file-roller -h $ARGV -e $argv[2]
else
command -sq file-roller; and file-roller -h $ARGV; or unzip $ARGV -d $FILE
# command -sq file-roller; and file-roller -h $ARGV; or unzip $ARGV -d $FILE
command -sq ouch; and ouch d $ARGV; or file-roller -h $ARGV
end
return
else if set -q _flag_X # extract Chinese characters
Expand Down

0 comments on commit d693de4

Please sign in to comment.