1 2 3 4 5 6 7 8
#!/bin/bash if [[ $@ =~ '--show-item' ]]; then file=$(echo "$@" | cut -c 13-) xdg-open $(dirname "${file}") else xdg-open $@ fi