mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-08 01:14:01 +01:00
fish: Update config
- Added opus function - Moved ex function to separate file
This commit is contained in:
parent
03d7b50ca6
commit
37a3d9450e
@ -52,9 +52,16 @@ 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"
|
||||
# Convert wav/flac to opus
|
||||
function opus
|
||||
set ORIGINAL_SIZE (du -hs | cut -f1)
|
||||
|
||||
fd -e wav -e flac -x ffmpeg -i "{}" -c:a libopus -b:a 128K -loglevel quiet -stats "{.}.opus"
|
||||
fd -e wav -e flac -X rm -I
|
||||
|
||||
set NEW_SIZE (du -hs | cut -f1)
|
||||
|
||||
echo "Done. Reduced file size from $ORIGINAL_SIZE to $NEW_SIZE"
|
||||
end
|
||||
|
||||
# Don't show ripgrep results for very long lines (e.g. minified files)
|
||||
|
Loading…
Reference in New Issue
Block a user