diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-29 22:26:42 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-29 22:26:42 +1200 |
commit | 2ca287acb4e8140f55d0b67afd2c477fb6e13e16 (patch) | |
tree | c937e490a7fbafd496da1a9b081f9da5c3d0f8a0 /bash/bashrc | |
parent | A few safety fixes to pass completion (diff) | |
download | dotfiles-2ca287acb4e8140f55d0b67afd2c477fb6e13e16.tar.gz dotfiles-2ca287acb4e8140f55d0b67afd2c477fb6e13e16.zip |
Align multiline if conditions
Diffstat (limited to 'bash/bashrc')
-rw-r--r-- | bash/bashrc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bash/bashrc b/bash/bashrc index c677d110..fde93050 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -1,9 +1,9 @@ # Ensure we're using at least version 2.05 if ! test -n "$BASH_VERSINFO" ; then return -elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) \ - && ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then - return +elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ + ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then + return fi # Don't do anything if not running interactively @@ -78,8 +78,8 @@ if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} >= 4)) ; then # Warn me about stopped jobs when exiting; only if >=4.1 due to bug # <https://lists.gnu.org/archive/html/bug-bash/2009-02/msg00176.html> - if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} > 4)) \ - || ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} > 0)) ; then + if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} > 4)) || \ + ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} > 0)) ; then shopt -s checkjobs fi fi |