Compare commits

...

2 Commits

Author SHA1 Message Date
inkch
33c0936e53 starship: show hostname when ssh or sudo 2024-01-17 18:41:42 +09:00
inkch
ab6c6258d1 starship: set color for username (for root and other) 2024-01-17 18:38:02 +09:00

View File

@ -22,10 +22,13 @@ add_newline = true
[username] [username]
style_user = 'bold yellow'
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