aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-29 22:26:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-29 22:26:42 +1200
commit2ca287acb4e8140f55d0b67afd2c477fb6e13e16 (patch)
treec937e490a7fbafd496da1a9b081f9da5c3d0f8a0
parentA few safety fixes to pass completion (diff)
downloaddotfiles-2ca287acb4e8140f55d0b67afd2c477fb6e13e16.tar.gz
dotfiles-2ca287acb4e8140f55d0b67afd2c477fb6e13e16.zip
Align multiline if conditions
-rw-r--r--bash/bash_logout6
-rw-r--r--bash/bash_profile6
-rw-r--r--bash/bashrc10
3 files changed, 11 insertions, 11 deletions
diff --git a/bash/bash_logout b/bash/bash_logout
index 8d703a79..d12d5802 100644
--- a/bash/bash_logout
+++ b/bash/bash_logout
@@ -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:]]*} < 4)) ; then
- return
+elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \
+ ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 4)) ; then
+ return
fi
# Clear console if possible when logging out
diff --git a/bash/bash_profile b/bash/bash_profile
index 91c0f867..f62a10db 100644
--- a/bash/bash_profile
+++ b/bash/bash_profile
@@ -6,9 +6,9 @@ fi
# 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
# Source interactive Bash config if it exists
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