From 3c172a45974d9daab425d850a66a6f782b88b68c Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Wed, 24 Apr 2024 20:55:57 -0400 Subject: [PATCH] Adds hostname to zsh prompt when ssh --- starship/starship.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/starship/starship.toml b/starship/starship.toml index 274c261..9d2e1c0 100644 --- a/starship/starship.toml +++ b/starship/starship.toml @@ -4,6 +4,7 @@ format = """ [](color_orange)\ $os\ $username\ +$hostname\ [](bg:color_pink fg:color_orange)\ $directory\ [](fg:color_pink bg:color_lavender)\ @@ -76,6 +77,11 @@ style_user = "bold bg:color_orange fg:color_grey" style_root = "bold bg:color_orange fg:color_grey" format = '[ $user ]($style)' +[hostname] +ssh_only = true +format = '[$ssh_symbol](bold blue) on [$hostname](bold red)' +disabled = false + [directory] style = "bold fg:color_grey bg:color_pink" format = "[ $path ]($style)"