chore: move out user roles
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
281b95d824
commit
0554e665c5
157 changed files with 17 additions and 17 deletions
roles/shell/zsh/files
65
roles/shell/zsh/files/starship.toml
Normal file
65
roles/shell/zsh/files/starship.toml
Normal file
|
@ -0,0 +1,65 @@
|
|||
add_newline = false
|
||||
format = """$username\
|
||||
$hostname\
|
||||
$git_branch\
|
||||
$git_commit\
|
||||
$git_state\
|
||||
$git_status\
|
||||
${custom.toolbox}\
|
||||
$nix_shell\
|
||||
$jobs\
|
||||
$time\
|
||||
$cmd_duration\
|
||||
$line_break\
|
||||
$directory\
|
||||
$character"""
|
||||
|
||||
[username]
|
||||
format = "[$user]($style)@"
|
||||
show_always = true
|
||||
style_user = "cyan"
|
||||
|
||||
[hostname]
|
||||
format = "[$hostname]($style) "
|
||||
ssh_only = false
|
||||
style = "purple"
|
||||
|
||||
[directory]
|
||||
style = "bright-purple"
|
||||
|
||||
[git_branch]
|
||||
format = "[$branch]($style)"
|
||||
style = "cyan"
|
||||
|
||||
[git_state]
|
||||
format = '\([$state( $progress_current/$progress_total)]($style)\) '
|
||||
style = "cyan"
|
||||
|
||||
[git_status]
|
||||
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
|
||||
style = "cyan"
|
||||
conflicted = ""
|
||||
untracked = ""
|
||||
modified = ""
|
||||
staged = ""
|
||||
renamed = ""
|
||||
deleted = ""
|
||||
stashed = "≡"
|
||||
|
||||
[custom.toolbox]
|
||||
when = "ls /run/.containerenv"
|
||||
symbol = " "
|
||||
command = "~/.local/bin/toolbox_name.sh"
|
||||
format = "in [$symbol($output )]($style)"
|
||||
style = "bold purple"
|
||||
|
||||
[time]
|
||||
disabled = true
|
||||
|
||||
[cmd_duration]
|
||||
format = " [$duration]($style) "
|
||||
style = "italic yellow"
|
||||
|
||||
[character]
|
||||
success_symbol = "[%](green)"
|
||||
error_symbol = "[%](red)"
|
Loading…
Add table
Add a link
Reference in a new issue