summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2016-11-10 07:14:17 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2016-11-10 07:14:17 +0100
commit18259e0e96d9373341dd8157ae397e1910d80166 (patch)
tree67968f8d461d9ec5852ffc79f61f6f1b538e8151
parent9a40e078c44237970cc7cf8815ad90da84e652d4 (diff)
downloaddotfiles-18259e0e96d9373341dd8157ae397e1910d80166.tar.xz
(m) Simplify case statement
-rw-r--r--.bashprompt7
1 files changed, 3 insertions, 4 deletions
diff --git a/.bashprompt b/.bashprompt
index 1b300ce..96f92eb 100644
--- a/.bashprompt
+++ b/.bashprompt
@@ -10,12 +10,11 @@ __show-hostname ()
{
case "${PS1_SHOWHOSTNAME}" in
(''|auto)
- [ "${SSH_CONNECTION}" ]
- return $?;;
+ [ "${SSH_CONNECTION}" ];;
(yes)
- return 0;;
+ true;;
(*)
- return 1;;
+ false;;
esac
}