nushell etc for nomom
This commit is contained in:
parent
620fe90134
commit
77c3aa4fc1
11 changed files with 1400 additions and 2 deletions
119
users/vy/starship.toml
Normal file
119
users/vy/starship.toml
Normal file
|
|
@ -0,0 +1,119 @@
|
|||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
format = """
|
||||
[](color_orange)\
|
||||
$username\
|
||||
|
||||
[](bg:color_yellow fg:color_orange)\
|
||||
$directory\
|
||||
|
||||
[](fg:color_yellow bg:color_aqua)\
|
||||
${custom.jj}\
|
||||
|
||||
[](fg:color_aqua bg:color_blue)\
|
||||
$rust\
|
||||
|
||||
[](fg:color_blue bg:color_bg3)\
|
||||
$battery\
|
||||
|
||||
[](fg:color_bg3 bg:color_bg1)\
|
||||
$time\
|
||||
|
||||
[ ](fg:color_bg1)\
|
||||
$line_break$character"""
|
||||
|
||||
palette = 'gruvbox_dark'
|
||||
[palettes.gruvbox_dark]
|
||||
color_fg0 = '#fbf1c7'
|
||||
color_bg1 = '#3c3836'
|
||||
color_bg3 = '#665c54'
|
||||
color_blue = '#458588'
|
||||
color_aqua = '#689d6a'
|
||||
color_green = '#98971a'
|
||||
color_orange = '#d65d0e'
|
||||
color_purple = '#b16286'
|
||||
color_red = '#cc241d'
|
||||
color_yellow = '#d79921'
|
||||
|
||||
[directory]
|
||||
style = "fg:color_fg0 bg:color_yellow"
|
||||
format = "[ $path ]($style)"
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
|
||||
[directory.substitutions]
|
||||
"documents" = " "
|
||||
"downloads" = " "
|
||||
"music" = " "
|
||||
"pictures" = " "
|
||||
|
||||
[rust]
|
||||
# # symbol = ""
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol($version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
|
||||
[time]
|
||||
disabled = false
|
||||
time_format = "%R"
|
||||
style = "bg:color_bg1"
|
||||
format = '[[ $time ](fg:color_fg0 bg:color_bg1)]($style)'
|
||||
|
||||
[line_break]
|
||||
disabled = false
|
||||
|
||||
[character]
|
||||
disabled = false
|
||||
success_symbol = '[](bold fg:color_green)'
|
||||
error_symbol = '[](bold fg:color_red)'
|
||||
vimcmd_symbol = '[](bold fg:color_green)'
|
||||
vimcmd_replace_one_symbol = '[](bold fg:color_purple)'
|
||||
vimcmd_replace_symbol = '[](bold fg:color_purple)'
|
||||
vimcmd_visual_symbol = '[](bold fg:color_yellow)'
|
||||
|
||||
# custom module for jj status
|
||||
[custom.jj]
|
||||
ignore_timeout = true
|
||||
description = "current jj status"
|
||||
symbol = " 🥋 "
|
||||
when = "exit ((jj root | complete).exit_code)"
|
||||
style = "bg:color_aqua"
|
||||
command = '''
|
||||
jj log --no-pager --revisions @ --no-graph --ignore-working-copy --template '
|
||||
separate(
|
||||
" ",
|
||||
change_id.shortest(),
|
||||
bookmarks,
|
||||
"|",
|
||||
concat(
|
||||
if(conflict, "💥"),
|
||||
if(divergent, "🚧"),
|
||||
if(hidden, "👻"),
|
||||
if(immutable, "🔒"),
|
||||
),
|
||||
if(empty,
|
||||
"(empty)"
|
||||
),
|
||||
if(description.first_line().len() == 0,
|
||||
"(no description set)",
|
||||
if(description.first_line().substr(0, 29) == description.first_line(),
|
||||
description.first_line(),
|
||||
description.first_line().substr(0, 29) ++ "...",
|
||||
)
|
||||
),
|
||||
)
|
||||
'
|
||||
'''
|
||||
|
||||
|
||||
# disable git modules
|
||||
[git_state]
|
||||
disabled = true
|
||||
|
||||
[git_commit]
|
||||
disabled = true
|
||||
|
||||
[git_metrics]
|
||||
disabled = true
|
||||
|
||||
[git_branch]
|
||||
disabled = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue