diff options
author | Oliver Kiddle <opk@zsh.org> | 2016-12-01 21:45:04 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2016-12-01 21:45:04 +0100 |
commit | 7d80b1470200a28e7ce3446ca6e6f19182204c07 (patch) | |
tree | aca379b6a822cb01812682c8b53f36fb6dd9fb26 | |
parent | 8891f5a33d2617b7c7bb4f37c4340a1dd159529e (diff) | |
download | zsh-7d80b1470200a28e7ce3446ca6e6f19182204c07.tar.gz zsh-7d80b1470200a28e7ce3446ca6e6f19182204c07.tar.xz zsh-7d80b1470200a28e7ce3446ca6e6f19182204c07.zip |
40053: exclude current directory of active zsh from _external_pwds ompletion matches
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Base/Completer/_external_pwds | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 98baf3ed1..18c5a973b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-12-01 Oliver Kiddle <opk@zsh.org> + + * 40053: Completion/Base/Completer/_external_pwds: exclude + current directory of active zsh from completion matches + 2016-12-01 Daniel Shahaf <d.s@daniel.shahaf.name> * unposted: Functions/VCS_Info/VCS_INFO_patch2subject, diff --git a/Completion/Base/Completer/_external_pwds b/Completion/Base/Completer/_external_pwds index a9dc859f1..dfc1abe16 100644 --- a/Completion/Base/Completer/_external_pwds +++ b/Completion/Base/Completer/_external_pwds @@ -36,7 +36,7 @@ case $OSTYPE in fi ;; esac -dirs=( ${(D)dirs} ) +dirs=( ${(D)dirs:#$PWD} ) compstate[pattern_match]='*' _wanted directories expl 'current directory from other shell' \ |