diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-08 17:54:50 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-08 17:54:50 +1200 |
commit | 69bf9edc8b1d2e62785e71c831408f0ad6a90eea (patch) | |
tree | b75f8f2931c958d2bdf7019c096e5156b4f07ac6 /bash/bashrc | |
parent | Tidy up line-split conditional (diff) | |
download | dotfiles-69bf9edc8b1d2e62785e71c831408f0ad6a90eea.tar.gz dotfiles-69bf9edc8b1d2e62785e71c831408f0ad6a90eea.zip |
Set direxpand if available (very new option)
Diffstat (limited to 'bash/bashrc')
-rw-r--r-- | bash/bashrc | 6 |
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 |