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
ca45d510
Commit
ca45d510
authored
Oct 03, 2018
by
Rubén Durán Balda
Committed by
Marc Cornellà
Oct 03, 2018
Browse files
jump: fix behavior when reusing a mark (#7197)
Force the mark to point to the new dir, replacing the old one. Fixes #7195
parent
0fdb911d
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/jump/jump.plugin.zsh
View file @
ca45d510
...
@@ -19,7 +19,7 @@ mark() {
...
@@ -19,7 +19,7 @@ mark() {
MARK
=
"
$1
"
MARK
=
"
$1
"
fi
fi
if
read
-q
\?
"Mark
$PWD
as
${
MARK
}
? (y/n) "
;
then
if
read
-q
\?
"Mark
$PWD
as
${
MARK
}
? (y/n) "
;
then
mkdir
-p
"
$MARKPATH
"
;
ln
-s
"
$PWD
"
"
$MARKPATH
/
$MARK
"
mkdir
-p
"
$MARKPATH
"
;
ln
-s
fh
"
$PWD
"
"
$MARKPATH
/
$MARK
"
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