diff options
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index fa46a5dd..94e49ff2 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -17,7 +17,7 @@ prompt() { PS1='[\u@\h:\w]$(prompt job)$(prompt vcs)$(prompt ret)\$' # If Bash 4.0 is available, trim very long paths in prompt - if ((BASH_VERSINFO[0] >= 4)) ; then + if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} >= 4)) ; then PROMPT_DIRTRIM=4 fi |