Commit 12086593 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

open_command: simplify code

parent 0639582f
...@@ -16,9 +16,6 @@ function take() { ...@@ -16,9 +16,6 @@ function take() {
} }
function open_command() { function open_command() {
emulate -L zsh
setopt shwordsplit
local open_cmd local open_cmd
# define the open command # define the open command
...@@ -36,9 +33,9 @@ function open_command() { ...@@ -36,9 +33,9 @@ function open_command() {
# don't use nohup on OSX # don't use nohup on OSX
if [[ "$OSTYPE" == darwin* ]]; then if [[ "$OSTYPE" == darwin* ]]; then
$open_cmd "$@" &>/dev/null ${=open_cmd} "$@" &>/dev/null
else else
nohup $open_cmd "$@" &>/dev/null nohup ${=open_cmd} "$@" &>/dev/null
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment