wireguard-setup/scripts/vpn_prompt.sh

7 lines
140 B
Bash
Raw Permalink Normal View History

2024-02-09 20:08:06 +00:00
if /snacks/wireguard/scripts/is_root_namespace.py
2024-02-09 19:38:42 +00:00
then
2024-02-09 20:08:06 +00:00
export PS1='%n@%m % %c %#'
else
2024-02-09 19:38:42 +00:00
export PS1='%F{red}<vpn>%f %n@%m % %c %#'
fi