diff options
author | Tom Willemse | 2021-10-22 00:48:15 -0700 |
---|---|---|
committer | Tom Willemse | 2021-11-02 22:06:32 -0700 |
commit | 44d70bd42e9edfd1ce013cd700476c37646840a5 (patch) | |
tree | d767b4e5fe974e8e01d5aa3dff6abcdc9b9b977c /fish | |
parent | 0e65cd9d6e97de029bd0d7ed8a50f4469d9c2469 (diff) | |
download | new-dotfiles-44d70bd42e9edfd1ce013cd700476c37646840a5.tar.gz new-dotfiles-44d70bd42e9edfd1ce013cd700476c37646840a5.zip |
[fish] Show whether my work VPN is active
Diffstat (limited to 'fish')
-rw-r--r-- | fish/.config/fish/config.fish | 5 |
1 files changed, 5 insertions, 0 deletions
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) |