dotfiles/fish/functions/_pure_prompt_ssh_host.fish

8 lines
261 B
Fish
Raw Normal View History

function _pure_prompt_ssh_host
set --query --global hostname
or set --local hostname (hostname -s) # current host name compatible busybox
set --local hostname_color (_pure_set_color $pure_color_ssh_hostname)
echo "$hostname_color$hostname"
end