Simply update your bash profile to add an alias to this script:
alias mkv2mp4="bash ~/PATH/TO/SCRIPT/mkv2mp4.sh"
$ mkv2mp4
MKV File: {ENTER_MKV_FILE}
...
#!/bin/sh | |
echo -n "MKV File: " | |
read mkv_file | |
filename="${mkv_file%.*}.mp4" | |
ffmpeg -i "$mkv_file" -c:v copy -c:a copy "$filename" |