Skip to content

Instantly share code, notes, and snippets.

@Yevgnen
Created November 20, 2016 06:13
Show Gist options
  • Save Yevgnen/6ec3b06488b266b3b9c371ea4a875a07 to your computer and use it in GitHub Desktop.
Save Yevgnen/6ec3b06488b266b3b9c371ea4a875a07 to your computer and use it in GitHub Desktop.
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