aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-08 17:54:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-08 17:54:50 +1200
commit69bf9edc8b1d2e62785e71c831408f0ad6a90eea (patch)
treeb75f8f2931c958d2bdf7019c096e5156b4f07ac6 /bash/bashrc
parentTidy up line-split conditional (diff)
downloaddotfiles-69bf9edc8b1d2e62785e71c831408f0ad6a90eea.tar.gz
dotfiles-69bf9edc8b1d2e62785e71c831408f0ad6a90eea.zip
Set direxpand if available (very new option)
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc
index fae8d641..02cbba46 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -81,6 +81,12 @@ if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} >= 4)) ; then
((10#${BASH_VERSINFO[1]%%[![:digit:]]*} >= 1)) ; then
shopt -s checkjobs
fi
+
+ # Expand variables in directory completion
+ if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} > 4)) || \
+ ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} >= 3)) ; then
+ shopt -s direxpand
+ fi
fi
# Load any supplementary scripts