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
d3e005d6
Commit
d3e005d6
authored
Sep 06, 2013
by
Jeroen Janssens
Browse files
Fix aliasing pwd
parent
255b0c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/jump/jump.plugin.zsh
View file @
d3e005d6
...
...
@@ -13,14 +13,13 @@ jump() {
}
mark
()
{
DIR
=
"
$(
pwd
)
"
if
((
$#
==
0
))
;
then
MARK
=
$(
basename
$DIR
)
MARK
=
$(
basename
"
$(
pwd
)
"
)
else
MARK
=
$1
MARK
=
"
$1
"
fi
if
read
-q
\?
"Mark
$
{
DIR
}
as
${
MARK
}
? (y/n) "
;
then
mkdir
-p
"
$MARKPATH
"
;
ln
-s
"
$
{
DIR
}
"
"
$MARKPATH
/
$MARK
"
if
read
-q
\?
"Mark
$
(
pwd
)
as
${
MARK
}
? (y/n) "
;
then
mkdir
-p
"
$MARKPATH
"
;
ln
-s
"
$
(
pwd
)
"
"
$MARKPATH
/
$MARK
"
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