X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Flib%2Flogin_functions.sh;h=7bd88cb52cf07054396097a163fd598f33230662;hb=5671a1eef64379979e9e398d3995c2331f32964f;hp=3bf767623cca07401ef73010fc7b01ae1b85b59e;hpb=af4a2d18746a6cd9c9cbcd3006dd735468363c70;p=khome.git diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 3bf7676..7bd88cb 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -1,5 +1,16 @@ # +## open : string -> unit +## +## Fork xdg-open so we don't block current terminal session when opening +## things like pdf files. For example: +## +## open book.pdf +## +open() { + (xdg-open "$1" &) & +} + ## notify_done : unit -> unit notify_done() { local -r _status_code="$?"