From: Nicolas Boisselier Date: Mon, 22 Jun 2015 13:31:09 +0000 (+0100) Subject: Check shell X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=1a7d67237306be0184e7542e8b9e0627ab463568;p=nb.git Check shell --- diff --git a/etc/bashrc.function b/etc/bashrc.function index ec51d492..b920560f 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -110,10 +110,15 @@ fi # CHECK SHELL # ################################################################################# -case "$SHELL" in +case "$BASH" in */bash) ;; - */zsh) ;; - *) return 0 ;; + *) + case "$SHELL" in + */bash) ;; + */zsh) ;; + *) return 0 ;; + esac + ;; esac #################################################################################