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
9f801ff4
Commit
9f801ff4
authored
Oct 21, 2014
by
Markus Faerevaag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wd] fix space in path
parent
b5093859
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wd.sh
plugins/wd/wd.sh
+2
-2
No files found.
plugins/wd/wd.sh
View file @
9f801ff4
...
@@ -139,7 +139,7 @@ wd_add()
...
@@ -139,7 +139,7 @@ wd_add()
if
[[
$point
=
~
"^[
\.
]+$"
]]
if
[[
$point
=
~
"^[
\.
]+$"
]]
then
then
wd_exit_fail
"Warp point cannot be just dots"
wd_exit_fail
"Warp point cannot be just dots"
elif
[[
$point
=
~
"
(
\s
|
\
)
+"
]]
elif
[[
$point
=
~
"
[[:space:]]
+"
]]
then
then
wd_exit_fail
"Warp point should not contain whitespace"
wd_exit_fail
"Warp point should not contain whitespace"
elif
[[
$point
==
*
:
*
]]
elif
[[
$point
==
*
:
*
]]
...
@@ -151,7 +151,7 @@ wd_add()
...
@@ -151,7 +151,7 @@ wd_add()
elif
[[
${
points
[
$2
]
}
==
""
]]
||
$force
elif
[[
${
points
[
$2
]
}
==
""
]]
||
$force
then
then
wd_remove
$point
>
/dev/null
wd_remove
$point
>
/dev/null
printf
"%q:%
q
\n
"
"
${
point
}
"
"
${
PWD
}
"
>>
$WD_CONFIG
printf
"%q:%
s
\n
"
"
${
point
}
"
"
${
PWD
}
"
>>
$WD_CONFIG
wd_print_msg
$WD_GREEN
"Warp point added"
wd_print_msg
$WD_GREEN
"Warp point added"
...
...
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