summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index 96b7f99..429b840 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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")"
}