home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af4a2d1
)
Add "open" function to fork xdg-open
author
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 12 Jul 2022 19:49:58 +0000
(15:49 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 12 Jul 2022 19:54:56 +0000
(15:54 -0400)
home/lib/login_functions.sh
patch
|
blob
|
blame
|
history
diff --git
a/home/lib/login_functions.sh
b/home/lib/login_functions.sh
index
3bf7676
..
7bd88cb
100644
(file)
--- 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="$?"
This page took
0.028449 seconds
and
4
git commands to generate.