feat(starship): restructure into two lines
This commit is contained in:
@@ -1,44 +1,55 @@
|
|||||||
add_newline = false
|
add_newline = false
|
||||||
|
|
||||||
format = """\
|
format = """\
|
||||||
|
$username\
|
||||||
$hostname\
|
$hostname\
|
||||||
[$directory](cyan)\
|
$directory\
|
||||||
$git_branch\
|
$git_branch\
|
||||||
$git_commit\
|
$git_commit\
|
||||||
$git_state\
|
$git_state\
|
||||||
$git_status\
|
$git_status\
|
||||||
$character\
|
|
||||||
"""
|
|
||||||
|
|
||||||
right_format = """\
|
|
||||||
$nix_shell\
|
$nix_shell\
|
||||||
$golang\
|
$golang\
|
||||||
$lua\
|
$lua\
|
||||||
$nodejs\
|
$nodejs\
|
||||||
$python\
|
$python\
|
||||||
$rust\
|
$rust\
|
||||||
|
$dotnet\
|
||||||
|
$c\
|
||||||
|
$solidity\
|
||||||
|
$terraform\
|
||||||
|
$kubernetes\
|
||||||
|
$helm\
|
||||||
$cmd_duration\
|
$cmd_duration\
|
||||||
|
$line_break\
|
||||||
|
$character\
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[nix_shell]
|
[username]
|
||||||
disabled = false
|
show_always = true
|
||||||
format = '[n(\($name\))](bold blue) '
|
format = '[$user](bold yellow)'
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
ssh_only = false
|
||||||
|
format = '[@$hostname](bold yellow) '
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
style = 'bold cyan'
|
||||||
|
truncation_length = 1
|
||||||
|
truncate_to_repo = false
|
||||||
|
fish_style_pwd_dir_length = 1
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
success_symbol = '[>](bold green)'
|
success_symbol = '[>](bold green)'
|
||||||
error_symbol = '[>](bold red)'
|
error_symbol = '[>](bold red)'
|
||||||
|
|
||||||
[directory]
|
[git_branch]
|
||||||
truncation_length = 1
|
format = 'on [$branch(:$remote_branch)]($style) '
|
||||||
truncate_to_repo = false
|
symbol = ''
|
||||||
fish_style_pwd_dir_length = 1
|
|
||||||
|
|
||||||
[git_commit]
|
[git_commit]
|
||||||
tag_symbol = ''
|
tag_symbol = ''
|
||||||
|
|
||||||
[git_branch]
|
|
||||||
symbol = ''
|
|
||||||
|
|
||||||
[git_status]
|
[git_status]
|
||||||
format = '[$all_status$ahead_behind]($style)'
|
format = '[$all_status$ahead_behind]($style)'
|
||||||
ahead = '[↑${count}](green) '
|
ahead = '[↑${count}](green) '
|
||||||
@@ -51,13 +62,47 @@ stashed = '[*${count}](green) '
|
|||||||
deleted = '[x${count}](red) '
|
deleted = '[x${count}](red) '
|
||||||
renamed = '[r${count}](yellow) '
|
renamed = '[r${count}](yellow) '
|
||||||
|
|
||||||
|
[nix_shell]
|
||||||
|
disabled = false
|
||||||
|
format = '[nix](bold blue) '
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = 'go-'
|
||||||
|
|
||||||
|
[lua]
|
||||||
|
symbol = 'lua-'
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
symbol = 'node-'
|
||||||
|
|
||||||
[python]
|
[python]
|
||||||
format = 'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'
|
symbol = 'py-'
|
||||||
|
format = '[${symbol}(${version})]($style) '
|
||||||
python_binary = 'python'
|
python_binary = 'python'
|
||||||
pyenv_version_name = false
|
pyenv_version_name = false
|
||||||
detect_files = [ '.python-version' ]
|
detect_files = ['.python-version']
|
||||||
|
|
||||||
[hostname]
|
[rust]
|
||||||
ssh_only = false
|
symbol = 'rs-'
|
||||||
style = 'bold yellow'
|
|
||||||
format = '[$hostname]($style) on '
|
[c]
|
||||||
|
symbol = 'c-'
|
||||||
|
|
||||||
|
[dotnet]
|
||||||
|
symbol = 'net-'
|
||||||
|
|
||||||
|
[solidity]
|
||||||
|
symbol = 'sol-'
|
||||||
|
|
||||||
|
[terraform]
|
||||||
|
symbol = 'tf-'
|
||||||
|
|
||||||
|
[kubernetes]
|
||||||
|
disabled = false
|
||||||
|
symbol = 'k8s-'
|
||||||
|
|
||||||
|
[helm]
|
||||||
|
symbol = 'helm-'
|
||||||
|
|
||||||
|
[cmd_duration]
|
||||||
|
format = '[took $duration]($style) '
|
||||||
|
|||||||
Reference in New Issue
Block a user