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
|
add_newline = true
|
||||||
format = """
|
format = """
|
||||||
[\\[sage\\]](bold red) \
|
${custom.username}\
|
||||||
$username\
|
|
||||||
$hostname\
|
$hostname\
|
||||||
$shlvl\
|
$shlvl\
|
||||||
$kubernetes\
|
$kubernetes\
|
||||||
|
@ -50,7 +49,6 @@ $gcloud\
|
||||||
$openstack\
|
$openstack\
|
||||||
$env_var\
|
$env_var\
|
||||||
$crystal\
|
$crystal\
|
||||||
$custom\
|
|
||||||
$line_break\
|
$line_break\
|
||||||
$lua\
|
$lua\
|
||||||
$jobs\
|
$jobs\
|
||||||
|
@ -106,3 +104,8 @@ discharging_symbol = " "
|
||||||
|
|
||||||
[dotnet]
|
[dotnet]
|
||||||
format = 'via [$symbol($version) (◎ $tfm )]($style)'
|
format = 'via [$symbol($version) (◎ $tfm )]($style)'
|
||||||
|
|
||||||
|
[custom.username]
|
||||||
|
command = 'echo "[$(whoami | sed "s/vaillancourt//")]"'
|
||||||
|
when = true
|
||||||
|
style = 'bold red'
|
||||||
|
|
Loading…
Reference in New Issue