Created
November 20, 2016 06:13
-
-
Save Yevgnen/6ec3b06488b266b3b9c371ea4a875a07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXTS=( 3GP ASF AVI FLV M4V MKV MOV MP4 MPEG MPG MPG2 MPG4 RMVB WMV MTS ) | |
brew install duti | |
for ext in ${EXTS[@]} | |
do | |
lower=$(echo $ext | awk '{print tolower($0)}') | |
duti -s io.mpv $ext all | |
duti -s io.mpv $lower all | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment