feat(starship): write user@host at the end of right prompt when ssh

This commit is contained in:
Matej Janezic 2024-12-30 03:18:25 +01:00
parent f39f21b624
commit 475c183ff7
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 9 additions and 1 deletions

View File

@ -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 = ''