mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-19 03:01:27 +01:00
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:
parent
ad28ef8dcf
commit
8f643378dd
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user