summaryrefslogtreecommitdiff
path: root/zshfunc/vcs-info/VCS_INFO_realpath
diff options
context:
space:
mode:
Diffstat (limited to 'zshfunc/vcs-info/VCS_INFO_realpath')
-rw-r--r--zshfunc/vcs-info/VCS_INFO_realpath11
1 files changed, 0 insertions, 11 deletions
diff --git a/zshfunc/vcs-info/VCS_INFO_realpath b/zshfunc/vcs-info/VCS_INFO_realpath
deleted file mode 100644
index ba4a12a..0000000
--- a/zshfunc/vcs-info/VCS_INFO_realpath
+++ /dev/null
@@ -1,11 +0,0 @@
-VCS_INFO_realpath () { #{{{
- # a portable 'readlink -f'
- # forcing a subshell, to ensure chpwd() is not removed
- # from the calling shell (if VCS_INFO_realpath() is called
- # manually).
- (
- (( ${+functions[chpwd]} )) && unfunction chpwd
- setopt chaselinks
- cd $1 2>/dev/null && pwd
- )
-}