From 0dceb14a89524ca4c99a4b95f64c790a0ff97031 Mon Sep 17 00:00:00 2001 From: Joel Schaerer Date: Fri, 20 Feb 2009 04:55:22 +0100 Subject: [PATCH] make autojump.sh POSIX compliant, thanks oylenshpeegul --- autojump.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autojump.sh b/autojump.sh index d6cfbe1..3431c6c 100755 --- a/autojump.sh +++ b/autojump.sh @@ -1,5 +1,5 @@ #Source autojump.bashrc only if we're on bash, as it is #not compatible with other shells -if [ $SHELL = "/bin/bash" ] && [ -n "$PS1" ]; then - source /etc/profile.d/autojump.bash +if [ $BASH_VERSION ] && [ -n "$PS1" ]; then + . /etc/profile.d/autojump.bash fi