summaryrefslogtreecommitdiff
path: root/.bashprompt
diff options
context:
space:
mode:
Diffstat (limited to '.bashprompt')
-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
}