mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Merge remote-tracking branch 'upstream/master'
Conflicts: .gitignore plugins/git/git.plugin.zsh plugins/jump/jump.plugin.zsh templates/zshrc.zsh-template
This commit is contained in:
commit
bd32698531
15 changed files with 119 additions and 13 deletions
|
|
@ -63,7 +63,13 @@ function marks()
|
|||
|
||||
function _completemarks()
|
||||
{
|
||||
reply=($(ls $MARKPATH/**/*(-) | grep : | sed -E 's/(.*)\/([_\da-zA-Z\-]*):$/\2/g'))
|
||||
if [[ $(ls "${MARKPATH}" | wc -l) -gt 1 ]]; then
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue