mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
Merge pull request #2098 from monstermunchkin/master
jump plugin: fix autocompletion with single mark
This commit is contained in:
commit
d5701784b0
1 changed files with 7 additions and 1 deletions
|
@ -38,7 +38,13 @@ marks() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_completemarks() {
|
_completemarks() {
|
||||||
|
if [[ $(ls "${MARKPATH}" | wc -l) -gt 1 ]]; then
|
||||||
reply=($(ls $MARKPATH/**/*(-) | grep : | sed -E 's/(.*)\/([_\da-zA-Z\-]*):$/\2/g'))
|
reply=($(ls $MARKPATH/**/*(-) | grep : | sed -E 's/(.*)\/([_\da-zA-Z\-]*):$/\2/g'))
|
||||||
|
else
|
||||||
|
if readlink -e "${MARKPATH}"/* &>/dev/null; then
|
||||||
|
reply=($(ls "${MARKPATH}"))
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
compctl -K _completemarks jump
|
compctl -K _completemarks jump
|
||||||
compctl -K _completemarks unmark
|
compctl -K _completemarks unmark
|
||||||
|
|
Loading…
Reference in a new issue