diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc index e714f45..3aa7a5c 100644 --- a/dotfiles/bash/.bashrc +++ b/dotfiles/bash/.bashrc @@ -81,7 +81,6 @@ alias docker='sudo docker' alias autopurge='sudo pacman -Rns $(pacman -Qdtq)' alias syu='sudo pacman -Syu; sudo pacman -Rns $(pacman -Qdtq); pacman -Qem; cower -u' alias d-u='sudo apt update && sudo apt full-upgrade && sudo apt --purge autoremove && sudo apt clean' -alias compress-music='nice -n19 /home/lub/git/scripts/compress-music.sh' alias pp='git pull -r && git push' alias statdiff='git status && git diff --staged' diff --git a/dotfiles/bin/.bin/compress-music.sh b/dotfiles/bin/.bin/compress-music similarity index 79% rename from dotfiles/bin/.bin/compress-music.sh rename to dotfiles/bin/.bin/compress-music index a2811fd..ee4d72c 100755 --- a/dotfiles/bin/.bin/compress-music.sh +++ b/dotfiles/bin/.bin/compress-music @@ -19,5 +19,5 @@ find . -type f -and \( -name '*.mp3' -or -name '*.ogg' -or -name '*.m4a' -or -na # set +e because ffmpeg errors on .jpg, .txt, etc. # compress with mp3 set +e -find . -type f -not -name '*.mp3' -not -name '*.ogg' -not -name '*.m4a' -not -name '*.opus' | parallel --eta --progress 'ffmpeg -v 0 -n -i ""{}"" -c:a mp3 -b:a 320 -map_metadata 0 ""$destination/{.}.mp3""' +find . -type f -not -name '*.mp3' -not -name '*.ogg' -not -name '*.m4a' -not -name '*.opus' | parallel --eta --progress 'nice -n19 ffmpeg -v 0 -n -i ""{}"" -c:a mp3 -b:a 320 -map_metadata 0 ""$destination/{.}.mp3""' #set -e