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
2abe4d6a
Unverified
Commit
2abe4d6a
authored
Oct 09, 2020
by
Atk
Committed by
GitHub
Oct 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wd: update to v0.5.1 (#9273)
parent
8c8fe2a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
wd.sh
plugins/wd/wd.sh
+5
-5
No files found.
plugins/wd/wd.sh
View file @
2abe4d6a
...
...
@@ -71,7 +71,7 @@ wd_print_msg()
wd_print_usage
()
{
cat
<<-
EOF
c
ommand c
at
<<-
EOF
Usage: wd [command] [point]
Commands:
...
...
@@ -175,9 +175,9 @@ wd_add()
elif
[[
$point
=
~
"[[:space:]]+"
]]
then
wd_exit_fail
"Warp point should not contain whitespace"
elif
[[
$point
=
=
*
:
*
]]
elif
[[
$point
=
~ :
]]
||
[[
$point
=
~ /
]]
then
wd_exit_fail
"Warp point c
annot contain colons
"
wd_exit_fail
"Warp point c
ontains illegal character (:/)
"
elif
[[
${
points
[
$point
]
}
==
""
]]
||
[
!
-z
"
$force
"
]
then
wd_remove
"
$point
"
>
/dev/null
...
...
@@ -185,7 +185,7 @@ wd_add()
if
(
whence
sort
>
/dev/null
)
;
then
local
config_tmp
=
$(
mktemp
"
${
TMPDIR
:-
/tmp
}
/wd.XXXXXXXXXX"
)
# use 'cat' below to ensure we respect $WD_CONFIG as a symlink
sort
-o
"
${
config_tmp
}
"
"
$WD_CONFIG
"
&&
cat
"
${
config_tmp
}
"
>
"
$WD_CONFIG
"
&&
rm
"
${
config_tmp
}
"
command sort
-o
"
${
config_tmp
}
"
"
$WD_CONFIG
"
&&
command cat
"
${
config_tmp
}
"
>
"
$WD_CONFIG
"
&&
command
rm
"
${
config_tmp
}
"
fi
wd_export_static_named_directories
...
...
@@ -270,7 +270,7 @@ wd_ls()
wd_path
()
{
wd_getdir
"
$1
"
echo
"
$(
echo
"
$dir
"
|
sed
"s:
${
HOME
}
:~
:g"
)
"
echo
"
$(
echo
"
$dir
"
|
sed
"s:
~:
${
HOME
}
:g"
)
"
}
wd_show
()
...
...
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