12 lines
160 B
Bash
Executable File
12 lines
160 B
Bash
Executable File
#!/bin/sh
|
|
|
|
MIMETYPE=$(xdg-mime query filetype "$1")
|
|
case "$MIMETYPE" in
|
|
image/*)
|
|
gimp "$1"
|
|
;;
|
|
*)
|
|
"$EDITOR" "$1"
|
|
;;
|
|
esac
|