From cde8a236a6901d433154462ea47dfd2f6bbc7e81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Schmidts?= Date: Tue, 17 Jul 2012 11:01:54 +0200 Subject: [PATCH] simpler SSH_IP acquiring method --- prompt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prompt.bash b/prompt.bash index 613856d..181a94b 100644 --- a/prompt.bash +++ b/prompt.bash @@ -88,7 +88,7 @@ __connection() # Are we in an SSH connexion? SSH_FLAG=0 - SSH_IP=`echo $SSH_CLIENT | awk '{ print $1 }'` + SSH_IP=${SSH_CLIENT%% *} if [ $SSH_IP ] ; then SSH_FLAG=1 fi