| Server IP : 74.208.236.79 / Your IP : 216.73.216.40 Web Server : Apache System : Linux infongp-us50 4.4.400-icpu-108 #2 SMP Wed Feb 11 10:12:42 UTC 2026 x86_64 User : u93192080 ( 6162215) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/usr/share/zsh/functions/Zle/ |
Upload File : |
# expand-absolute-path
# This is a ZLE widget to expand the absolute path to a file,
# using directory naming to shorten the path where possible.
emulate -L zsh
setopt extendedglob cbases
autoload -Uz modify-current-argument
if (( ! ${+functions[glob-expand-absolute-path]} )); then
glob-expand-absolute-path() {
local -a files
files=(${~1}(N:P))
(( ${#files} )) || return
REPLY=${(D)files[1]}
}
fi
modify-current-argument glob-expand-absolute-path