Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
fea74b4b
Commit
fea74b4b
authored
Nov 29, 2015
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix open_command nohup call
There a syntax error if $cmd_var contains more than one word, so we drop the current way to prepend nohup and use a simpler if-else form.
parent
ef031dfe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
functions.zsh
lib/functions.zsh
+4
-2
No files found.
lib/functions.zsh
View file @
fea74b4b
...
@@ -29,9 +29,11 @@ function open_command() {
...
@@ -29,9 +29,11 @@ function open_command() {
esac
esac
# don't use nohup on OSX
# don't use nohup on OSX
[[
"
$OSTYPE
"
!=
darwin
*
]]
&&
open_cmd
=
"nohup
$open_cmd
"
if
[[
"
$OSTYPE
"
==
darwin
*
]]
;
then
$open_cmd
"
$@
"
&>/dev/null
$open_cmd
"
$@
"
&>/dev/null
else
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