12086593a432d754d9c28bf6a66a1196e79877a3
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
open_command: simplify code
Diff
1diff --git a/lib/functions.zsh b/lib/functions.zsh
2index 7410ae64553ecfebbfa467bca892d2043a2af583..f448dbce81dba1090c061e71a944d392d7ad0897 100644
3--- a/lib/functions.zsh
4+++ b/lib/functions.zsh
5@@ -16,9 +16,6 @@ function take() {
6 }
7
8 function open_command() {
9- emulate -L zsh
10- setopt shwordsplit
11-
12 local open_cmd
13
14 # define the open command
15@@ -36,9 +33,9 @@ function open_command() {
16
17 # don't use nohup on OSX
18 if [[ "$OSTYPE" == darwin* ]]; then
19- $open_cmd "$@" &>/dev/null
20+ ${=open_cmd} "$@" &>/dev/null
21 else
22- nohup $open_cmd "$@" &>/dev/null
23+ nohup ${=open_cmd} "$@" &>/dev/null
24 fi
25 }
26