Add custom username handler to starship

Also add a .gitignore
This commit is contained in:
Sage Vaillancourt 2023-12-13 14:18:08 -05:00
parent a4a03ebd0f
commit 801d44ca91
2 changed files with 8 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea/
*.swp

View File

@ -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'