From 39fc1df488de2bf4b81ca4c7e9e9e33c0ce2fd84 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Mon, 13 Aug 2012 11:44:09 +0200 Subject: [PATCH] Smaller shell detection (Thx to Michel Barret) --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 640b4d1..5f13f94 100755 --- a/liquidprompt +++ b/liquidprompt @@ -37,7 +37,7 @@ # See the README.md file for a summary of features. -WORKING_SHELL=$(ps -p $$ | tail -n1 | awk '{print $NF}') +WORKING_SHELL=$(ps -p $$ | awk '{n=$NF}END{print n}') if [[ "$WORKING_SHELL" == "bash" ]]; then # Check for recent enough version of bash.