From 475c183ff794fa6116c6e2179d394b4258e1cfaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Mon, 30 Dec 2024 03:18:25 +0100 Subject: [PATCH] feat(starship): write user@host at the end of right prompt when ssh --- starship/config.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/starship/config.toml b/starship/config.toml index 8ab54be..7ec17dc 100644 --- a/starship/config.toml +++ b/starship/config.toml @@ -1,7 +1,6 @@ add_newline = false format = """\ -$hostname\ [$directory](cyan)\ $git_branch\ $git_commit\ @@ -16,6 +15,7 @@ $lua\ $nodejs\ $python\ $rust\ +$username[@](bold yellow)$hostname\ """ [character] @@ -50,3 +50,11 @@ format = 'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)' python_binary = 'python' pyenv_version_name = false detect_files = [ '.python-version' ] + +[username] +format = '[$user]($style)' + +[hostname] +style = 'bold yellow' +format = '[$ssh_symbol$hostname]($style)' +ssh_symbol = ''