[fish] Show whether my work VPN is active

This commit is contained in:
Tom Willemse 2021-10-22 00:48:15 -07:00
parent 0e65cd9d6e
commit 44d70bd42e

View file

@ -24,6 +24,11 @@ function fish_prompt --description 'Write out the prompt'
set color_host $fish_color_host_remote set color_host $fish_color_host_remote
end end
if test -e "$XDG_RUNTIME_DIR/openconnect_vpn.pid"
set_color -b red
echo -n -s "[VPN]" $normal
end
# Write pipestatus # Write pipestatus
set -l prompt_status (__fish_print_pipestatus " [" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus) set -l prompt_status (__fish_print_pipestatus " [" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)