From dd00c0cf420cd57d716545c64863a65158718ecb Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 1 Sep 2016 11:42:05 +0200 Subject: [PATCH] compatible --- etc/profile | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/profile b/etc/profile index db2a759d..78b9c398 100644 --- a/etc/profile +++ b/etc/profile @@ -23,6 +23,7 @@ case "$BASH_SOURCE" in dir=${(%):-%N} dir=${dir%/*} elif [ -r /etc/profile.d/nb.sh ]; then + return dir=$(dirname $(cut -d'.' -f2 /etc/profile.d/nb.sh)) fi ;; -- 2.47.3