Skip to content

Commit

Permalink
feat: Add starship-style config sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwalton committed Sep 20, 2022
1 parent 3a19217 commit 4bad6ed
Showing 1 changed file with 101 additions and 0 deletions.
101 changes: 101 additions & 0 deletions sampleconfig/starship.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
prompt:
type: block
modules:
- type: block
style: brightCyan bold
modules:
- type: block
join: "@"
modules:
- type: username
- type: hostname
- type: directory
style: bold
- type: block
id: git
modules:
- type: git_head
template: |
{{- if .Text -}}
{{- if .Data.Detached -}}
on {{ style "brightMagenta bold" " HEAD " -}}
{{- printf "(%s)" .Data.ShortHash | style "brightGreen" -}}
{{- else -}}
on {{ printf " %s" .Data.Description | style "brightMagenta bold" -}}
{{- end -}}
{{- end -}}
- type: git_state
rebaseInteractive: REBASING
rebaseMerging: REBASING
rebasing: REBASING
rebaseAMing: AM/REBASE
template: |
{{- with .Text -}}
({{ . | style "brightYellow bold" }})
{{- end -}}
- type: block
style: brightRed bold
modules:
- type: git_diverged
upToDateSymbol: ""
- type: git_status
template: |
{{- with .Data.Modules -}}
{{- if or .git_diverged.Text .git_status.Text -}}
{{- $status := .git_status.Data -}}
[
{{- .git_diverged.Data.Symbol -}}
{{- if gt $status.Unmerged 0 -}}={{- end -}}
{{- if gt $status.StashCount 0 -}}${{- end -}}
{{- if gt $status.Unstaged.Added 0 -}}?{{- end -}}
{{- if gt $status.Index.Deleted 0 -}}✘{{- end -}}
{{- if or
(gt $status.Unstaged.Modified 0 )
(gt $status.Unstaged.Deleted 0 )
(gt $status.Index.Modified 0 )
(gt $status.Index.Added 0 )
-}}!{{- end -}}
]
{{- end -}}
{{- end -}}
- type: project
defaultProjectStyle: green bold
projects:
java:
style: dim red
toolSymbol: ""
go:
style: bold cyan
toolSymbol: "🐹 "
rust:
style: bold red
toolSymbol: "🦀 "
node-yarn:
style: bold blue
toolSymbol: ""
node:
style: bold green
toolSymbol: ""
deno:
style: bold green
toolSymbol: "🦕 "
python:
style: bold yellow
toolSymbol: "🐍 "
php:
style: bold 147
toolSymbol: "🐘 "
ruby:
style: bold red
toolSymbol: "💎 "
helm:
style: bold white
toolSymbol: ""
- type: kubernetes
conditions:
ifFiles: ['helm', 'charts']
- type: command_duration
style: brightYellow
- type: jobs
- type: prompt
errorStyle: brightRed

0 comments on commit 4bad6ed

Please sign in to comment.