diff options
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/pass.bash | 2 | ||||
-rw-r--r-- | bash/bashrc.d/prompt.bash | 2 | ||||
-rw-r--r-- | bash/bashrc.d/vared.bash | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/bash/bashrc.d/pass.bash b/bash/bashrc.d/pass.bash index d40a833f..8513e5dd 100644 --- a/bash/bashrc.d/pass.bash +++ b/bash/bashrc.d/pass.bash @@ -1,5 +1,5 @@ # Requires Bash >= 4.0 for dotglob, nullglob, and globstar -if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} < 4)) ; then +if ((BASH_VERSINFO[0] < 4)) ; then return fi diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 68c8eb37..e26460a4 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -26,7 +26,7 @@ prompt() { PS1=$PS1'\$' # If Bash 4.0 is available, trim very long paths in prompt - if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} >= 4)) ; then + if ((BASH_VERSINFO[0] >= 4)) ; then PROMPT_DIRTRIM=4 fi diff --git a/bash/bashrc.d/vared.bash b/bash/bashrc.d/vared.bash index e119319d..24ba0eac 100644 --- a/bash/bashrc.d/vared.bash +++ b/bash/bashrc.d/vared.bash @@ -1,5 +1,5 @@ # Requires Bash >= 4.0 for read -i and ${!name} -if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} < 4)) ; then +if ((BASH_VERSINFO[0] < 4)) ; then return fi |