function open

This commit is contained in:
thek4n 2025-03-24 10:49:06 +03:00
parent 1b62c2a66f
commit 9c6b4b0ebf

View File

@ -54,7 +54,10 @@ mcd() {
}
open() {
test -e "${1}" || return 1
if [ ! -e "${1}" ]; then
printf 'File %s not found' "${1}" >&2
exit 1
fi
nohup xdg-open "${1}" 1>/dev/null 2>&1 &
}