From 44d70bd42e9edfd1ce013cd700476c37646840a5 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 22 Oct 2021 00:48:15 -0700 Subject: [PATCH] [fish] Show whether my work VPN is active --- fish/.config/fish/config.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index ad7b3e3..4e1327d 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -24,6 +24,11 @@ function fish_prompt --description 'Write out the prompt' set color_host $fish_color_host_remote end + if test -e "$XDG_RUNTIME_DIR/openconnect_vpn.pid" + set_color -b red + echo -n -s "[VPN]" $normal + end + # Write pipestatus set -l prompt_status (__fish_print_pipestatus " [" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)