dotfiles/.local/bin/scripts/xo

8 lines
222 B
Plaintext
Raw Normal View History

2022-10-13 19:56:23 +00:00
#!/bin/sh
# xdg-open all given files
# TODO handle .desktop-files with gtk-launch/dex/kioclient exec, add selector from xdg-mime-file
while test $# -gt 0; do
2023-09-18 15:41:53 +00:00
xdg-open "$(case "$1" in (-*) echo './';; esac)$1"
2022-10-13 19:56:23 +00:00
shift
done