diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2016-11-10 07:14:17 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2016-11-10 07:14:17 +0100 |
| commit | 18259e0e96d9373341dd8157ae397e1910d80166 (patch) | |
| tree | 67968f8d461d9ec5852ffc79f61f6f1b538e8151 | |
| parent | 9a40e078c44237970cc7cf8815ad90da84e652d4 (diff) | |
| download | dotfiles-18259e0e96d9373341dd8157ae397e1910d80166.tar.xz | |
(m) Simplify case statement
| -rw-r--r-- | .bashprompt | 7 |
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 } |
