feat(starship): move user@host to left and add command time

This commit is contained in:
Matej Janezic 2025-01-02 22:42:22 +01:00
parent 475c183ff7
commit cf85fb6372
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
add_newline = false add_newline = false
format = """\ format = """\
$username$hostname\
[$directory](cyan)\ [$directory](cyan)\
$git_branch\ $git_branch\
$git_commit\ $git_commit\
@ -15,7 +16,7 @@ $lua\
$nodejs\ $nodejs\
$python\ $python\
$rust\ $rust\
$username[@](bold yellow)$hostname\ $cmd_duration\
""" """
[character] [character]
@ -52,9 +53,9 @@ pyenv_version_name = false
detect_files = [ '.python-version' ] detect_files = [ '.python-version' ]
[username] [username]
format = '[$user]($style)' format = '[$user@]($style)'
[hostname] [hostname]
style = 'bold yellow' style = 'bold yellow'
format = '[$ssh_symbol$hostname]($style)' format = '[$ssh_symbol$hostname]($style) '
ssh_symbol = '' ssh_symbol = ''