Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
12086593
Commit
12086593
authored
Jun 29, 2018
by
Marc Cornellà
Browse files
open_command: simplify code
parent
0639582f
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/functions.zsh
View file @
12086593
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment