Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
12086593
Commit
12086593
authored
Jun 29, 2018
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
open_command: simplify code
parent
0639582f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
functions.zsh
lib/functions.zsh
+2
-5
No files found.
lib/functions.zsh
View file @
12086593
...
@@ -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
}
}
...
...
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