Add custom username handler to starship
Also add a .gitignore
This commit is contained in:
parent
a4a03ebd0f
commit
801d44ca91
|
@ -0,0 +1,2 @@
|
|||
.idea/
|
||||
*.swp
|
|
@ -1,7 +1,6 @@
|
|||
add_newline = true
|
||||
format = """
|
||||
[\\[sage\\]](bold red) \
|
||||
$username\
|
||||
${custom.username}\
|
||||
$hostname\
|
||||
$shlvl\
|
||||
$kubernetes\
|
||||
|
@ -50,7 +49,6 @@ $gcloud\
|
|||
$openstack\
|
||||
$env_var\
|
||||
$crystal\
|
||||
$custom\
|
||||
$line_break\
|
||||
$lua\
|
||||
$jobs\
|
||||
|
@ -106,3 +104,8 @@ discharging_symbol = " "
|
|||
|
||||
[dotnet]
|
||||
format = 'via [$symbol($version) (◎ $tfm )]($style)'
|
||||
|
||||
[custom.username]
|
||||
command = 'echo "[$(whoami | sed "s/vaillancourt//")]"'
|
||||
when = true
|
||||
style = 'bold red'
|
||||
|
|
Loading…
Reference in New Issue