From 05278a919fb0ca2a8a8fd0b61bc45776500cfcc5 Mon Sep 17 00:00:00 2001 From: Green Luo Date: Thu, 19 Mar 2020 08:06:23 +1100 Subject: [PATCH] display '#' when current user is root --- bash-powerline.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash-powerline.sh b/bash-powerline.sh index 2120a3a..4674e2b 100644 --- a/bash-powerline.sh +++ b/bash-powerline.sh @@ -20,7 +20,7 @@ __powerline() { if [[ -z "$PS_SYMBOL" ]]; then case "$(uname)" in Darwin) PS_SYMBOL='';; - Linux) PS_SYMBOL='$';; + Linux) PS_SYMBOL='\$';; *) PS_SYMBOL='%';; esac fi