feat(starship): write user@host at the end of right prompt when ssh
This commit is contained in:
parent
f39f21b624
commit
475c183ff7
|
@ -1,7 +1,6 @@
|
||||||
add_newline = false
|
add_newline = false
|
||||||
|
|
||||||
format = """\
|
format = """\
|
||||||
$hostname\
|
|
||||||
[$directory](cyan)\
|
[$directory](cyan)\
|
||||||
$git_branch\
|
$git_branch\
|
||||||
$git_commit\
|
$git_commit\
|
||||||
|
@ -16,6 +15,7 @@ $lua\
|
||||||
$nodejs\
|
$nodejs\
|
||||||
$python\
|
$python\
|
||||||
$rust\
|
$rust\
|
||||||
|
$username[@](bold yellow)$hostname\
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
|
@ -50,3 +50,11 @@ format = 'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'
|
||||||
python_binary = 'python'
|
python_binary = 'python'
|
||||||
pyenv_version_name = false
|
pyenv_version_name = false
|
||||||
detect_files = [ '.python-version' ]
|
detect_files = [ '.python-version' ]
|
||||||
|
|
||||||
|
[username]
|
||||||
|
format = '[$user]($style)'
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
style = 'bold yellow'
|
||||||
|
format = '[$ssh_symbol$hostname]($style)'
|
||||||
|
ssh_symbol = ''
|
||||||
|
|
Loading…
Reference in New Issue