summaryrefslogtreecommitdiff
path: root/lib/functions.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-06-29 20:20:26 +0200
committerMarc Cornellà <marc.cornella@live.com>2018-06-30 21:13:08 +0200
commit12086593a432d754d9c28bf6a66a1196e79877a3 (patch)
treeed9452d63bc115775198037b01f44bf297dad6cc /lib/functions.zsh
parent0639582f73be6aec42d856a242ad1783eb05f973 (diff)
downloadzsh-12086593a432d754d9c28bf6a66a1196e79877a3.tar.gz
zsh-12086593a432d754d9c28bf6a66a1196e79877a3.tar.bz2
zsh-12086593a432d754d9c28bf6a66a1196e79877a3.zip
open_command: simplify code
Diffstat (limited to 'lib/functions.zsh')
-rw-r--r--lib/functions.zsh7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh
index 7410ae645..f448dbce8 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -16,9 +16,6 @@ function take() {
}
function open_command() {
- emulate -L zsh
- setopt shwordsplit
-
local open_cmd
# define the open command
@@ -36,9 +33,9 @@ function open_command() {
# don't use nohup on OSX
if [[ "$OSTYPE" == darwin* ]]; then
- $open_cmd "$@" &>/dev/null
+ ${=open_cmd} "$@" &>/dev/null
else
- nohup $open_cmd "$@" &>/dev/null
+ nohup ${=open_cmd} "$@" &>/dev/null
fi
}