starship: show hostname when ssh or sudo

This commit is contained in:
inkch 2024-01-17 18:41:42 +09:00
parent ab6c6258d1
commit 33c0936e53

View File

@ -27,7 +27,8 @@ style_root = 'bold red'
format = "[$user]($style)" format = "[$user]($style)"
[hostname] [hostname]
ssh_only = true ssh_only = false
detect_env_vars = ['SSH_CONNECTION', 'SUDO_USER']
format = "@[$hostname](bold red) " format = "@[$hostname](bold red) "
disabled = false disabled = false