From 12264911693a13a655039a685cd5cd21a8a3dd92 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 9 Feb 2024 21:08:06 +0100 Subject: [PATCH] add default prompt as well --- scripts/vpn_prompt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/vpn_prompt.sh b/scripts/vpn_prompt.sh index d331f25..4b87c05 100644 --- a/scripts/vpn_prompt.sh +++ b/scripts/vpn_prompt.sh @@ -1,4 +1,6 @@ -if ! /snacks/wireguard/scripts/is_root_namespace.py +if /snacks/wireguard/scripts/is_root_namespace.py then + export PS1='%n@%m % %c %#' +else export PS1='%F{red}%f %n@%m % %c %#' fi