starship: show hostname
when ssh or sudo
This commit is contained in:
parent
ab6c6258d1
commit
33c0936e53
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user