function open
This commit is contained in:
parent
1b62c2a66f
commit
9c6b4b0ebf
@ -54,7 +54,10 @@ mcd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
open() {
|
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 &
|
nohup xdg-open "${1}" 1>/dev/null 2>&1 &
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user