diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -15,8 +15,9 @@ diralias () { # XXX could -G be used instead? complete -o nospace -C \ "f(){ test \"\$3\" != \"$(basename "$1")\" || \ - find \"${1%%* }/\${2%\${2##*/}}\" -mindepth 1 -maxdepth 1 -type d \ - -name \"\${2##*/}*\" -printf \"\${2%\${2##*/}}%P\\n\"; }; f" \ + find -L \"${1%%* }/\${2%\${2##*/}}\" \ + -mindepth 1 -maxdepth 1 -type d -name \"\${2##*/}*\" \ + -printf \"\${2%\${2##*/}}%P\\n\"; }; f" \ "$(basename "$1")" } |