fish: Add ex function

This is the command I use to easily extract files with unar, which
automatically handles different character encodings.
This commit is contained in:
Donovan Glover 2022-07-30 10:40:02 -04:00
parent ad28ef8dcf
commit 8f643378dd
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -51,6 +51,11 @@ function wav2flac
echo "Done. Reduced file size from $ORIGINAL_SIZE to $NEW_SIZE"
end
# Easily extract files and remove the archive
function ex
unar "$argv"; and rm -i "$argv"
end
# Don't show ripgrep results for very long lines (e.g. minified files)
alias rg="rg --max-columns=200"