mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-10 10:19:51 +00:00
jump: fix behavior when reusing a mark (#7197)
Force the mark to point to the new dir, replacing the old one. Fixes #7195
This commit is contained in:
committed by
Marc Cornellà
parent
0fdb911da0
commit
ca45d510dd
@@ -19,7 +19,7 @@ mark() {
|
||||
MARK="$1"
|
||||
fi
|
||||
if read -q \?"Mark $PWD as ${MARK}? (y/n) "; then
|
||||
mkdir -p "$MARKPATH"; ln -s "$PWD" "$MARKPATH/$MARK"
|
||||
mkdir -p "$MARKPATH"; ln -sfh "$PWD" "$MARKPATH/$MARK"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user