diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2010-03-04 10:03:00 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-03-04 10:03:00 +0000 |
| commit | de3159d73ae3727d46f7daa2bfef2e990dcf4dc1 (patch) | |
| tree | dba662b2cc2a1cb32ccc6dacc100abcab05fec2f /Functions | |
| parent | 27762: omit ssh known_hosts entries with port numbers from host completion. (diff) | |
| download | zsh-de3159d73ae3727d46f7daa2bfef2e990dcf4dc1.tar zsh-de3159d73ae3727d46f7daa2bfef2e990dcf4dc1.tar.gz zsh-de3159d73ae3727d46f7daa2bfef2e990dcf4dc1.tar.bz2 zsh-de3159d73ae3727d46f7daa2bfef2e990dcf4dc1.tar.lz zsh-de3159d73ae3727d46f7daa2bfef2e990dcf4dc1.tar.xz zsh-de3159d73ae3727d46f7daa2bfef2e990dcf4dc1.tar.zst zsh-de3159d73ae3727d46f7daa2bfef2e990dcf4dc1.zip | |
Frank: 27768: shut up cd some more
Diffstat (limited to 'Functions')
| -rw-r--r-- | Functions/VCS_Info/VCS_INFO_realpath | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_realpath b/Functions/VCS_Info/VCS_INFO_realpath index c0f48a4ef..ce4a69402 100644 --- a/Functions/VCS_Info/VCS_INFO_realpath +++ b/Functions/VCS_Info/VCS_INFO_realpath @@ -2,15 +2,6 @@ ## Written by Frank Terbeck <ft@bewatermyfriend.org> ## Distributed under the same BSD-ish license as zsh itself. -# a portable 'readlink -f' -# forcing a subshell, to ensure chpwd() is not removed -# from the calling shell (if VCS_INFO_realpath() is called -# manually). - -setopt localoptions NO_shwordsplit - -( - (( ${+functions[chpwd]} )) && unfunction chpwd - setopt chaselinks - builtin cd $1 2>/dev/null && pwd -) +setopt localoptions NO_shwordsplit chaselinks +# -q to avoid chpwd() invocations +( builtin cd -q $1 2>/dev/null && pwd; ) |
