From 33c0936e53284f4d07d2bcf39394773ce42084bf Mon Sep 17 00:00:00 2001 From: inkch Date: Wed, 17 Jan 2024 18:41:42 +0900 Subject: [PATCH] starship: show `hostname` when ssh or sudo --- dot_config/starship.toml.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_config/starship.toml.tmpl b/dot_config/starship.toml.tmpl index b5289e4..5915ade 100644 --- a/dot_config/starship.toml.tmpl +++ b/dot_config/starship.toml.tmpl @@ -27,7 +27,8 @@ style_root = 'bold red' format = "[$user]($style)" [hostname] -ssh_only = true +ssh_only = false +detect_env_vars = ['SSH_CONNECTION', 'SUDO_USER'] format = "@[$hostname](bold red) " disabled = false