/ functions / mime.bash
mime.bash
1  # Print the mimetype of a file
2  # `file` actually guesses it from the file content
3  #  not the filename!
4  
5  mime(){
6      file -i "$1"
7  }