aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_logout
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-31 19:13:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-31 19:13:54 +1200
commita56c015950d810a3b1e38c942252f24920fe6023 (patch)
tree1628f8bcd5bd1504250bc67b4ab59152cf2fa54e /bash/bash_logout
parentImprove comments on shell scripts (diff)
downloaddotfiles-a56c015950d810a3b1e38c942252f24920fe6023.tar.gz
dotfiles-a56c015950d810a3b1e38c942252f24920fe6023.zip
Combine conditionals in logout script
Diffstat (limited to 'bash/bash_logout')
-rw-r--r--bash/bash_logout5
1 files changed, 2 insertions, 3 deletions
diff --git a/bash/bash_logout b/bash/bash_logout
index 4438bbe6..30b0c143 100644
--- a/bash/bash_logout
+++ b/bash/bash_logout
@@ -1,6 +1,5 @@
# Clear console if possible when logging out
-if [[ "$SHLVL" = 1 ]]; then
- command -v clear_console >/dev/null \
- && clear_console -q
+if [[ "$SHLVL" = 1 ]] && command -v clear_console >/dev/null; then
+ clear_console -q
fi