[fish] Show whether my work VPN is active
This commit is contained in:
parent
0e65cd9d6e
commit
44d70bd42e
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue