dotfiles

🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝
git clone https://git.kevinlegouguec.net/dotfiles
Log | Files | Refs | README

commit 18259e0e96d9373341dd8157ae397e1910d80166
parent 9a40e078c44237970cc7cf8815ad90da84e652d4
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Thu, 10 Nov 2016 07:14:17 +0100

(m) Simplify case statement

Diffstat:
M.bashprompt | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 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 }