You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there ! Here my custom theme, with many segments for pretty much every use case ! It makes use of tooltips to keep a clean prompt but get the right information when needed.
Here is a showcase:
I tried to submit it in #3713 but seems like we cannot submit themes at the moment, but feel free to get the code below !
kema.omp.yaml
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.jsonversion: 2palette:
default_fg: "#0077ff"default_bg: "#29315A"console_title_template: "{{ .UserName }}@{{ .HostName }} {{ .Shell }} in {{ .PWD }}"blocks:
- type: promptalignment: leftoverflow: breaksegments:
- type: osstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: p:default_fgbackground: p:default_bgproperties:
display_distro_name: falsealma: ""alpine: ""aosc: ""arch: ""centos: ""coreos: ""debian: ""devuan: ""raspbian: ""elementary: ""fedora: ""gentoo: ""mageia: ""manjaro: ""mint: ""nixos: ""opensuse: ""redhat: ""rocky: ""sabayon: ""slackware: ""ubuntu: ""linux: ""macos: ""windows: ""template:
"{{ if .WSL }} on {{ end }}{{ if .Icon }}{{ .Icon }}{{ end }}"
- type: shellstyle: diamondleading_diamond: ""trailing_diamond: " "foreground: p:default_fgbackground: p:default_bgtemplate: "{{ if .Name }}{{ .Name }}{{ end }}"
- type: sessionstyle: diamondleading_diamond: ""trailing_diamond: " "foreground: p:default_fgbackground: p:default_bgtemplate:
"{{ if .SSHSession }} {{ end }}{{ if .Root }}{{ if .UserName }}<#ff0055>{{ .UserName }}</>{{ end }}{{ else }}{{ .UserName }}{{ end }}{{ if .HostName }}{{ if .UserName }}@{{ end }}{{ .HostName }}{{ end }}"# - type: ipify# style: diamond# leading_diamond: ""# trailing_diamond: " "# foreground: p:default_fg# background: p:default_bg# properties:# cache_timeout: 15# http_timeout: 50# template:# "{{ if .IP }}{{ .IP }}{{ end# }}"
- type: pathstyle: diamondleading_diamond: ""trailing_diamond: " "foreground: p:default_fgbackground: p:default_bgproperties:
folder_separator_icon: "/"home_icon: " "folder_icon: "..."windows_registry_icon: ""style: agnoster_shortmixed_threshold: 5max_depth: 3hide_root_location: false# mapped_locations:template:
"{{ if .Path }}{{ .Path }}{{ end }}"
- type: gitstyle: diamondleading_diamond: ""trailing_diamond: " "foreground: "#43CCEA"background: p:default_bgforeground_templates:
- "{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}"
- "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}"
- "{{ if gt .Ahead 0 }}#b388ff{{ end }}"
- "{{ if gt .Behind 0 }}#b388ff{{ end }}"properties:
fetch_status: truefetch_stash_count: falsefetch_worktree_count: falsefetch_upstream_icon: truefetch_bare_info: true# untracked_modes:# ignore_submodules:native_fallback: falsecommit_icon: " "tag_icon: " "rebase_icon: " "cherry_pick_icon: " "revert_icon: " "merge_icon: " "no_commits_icon: " "branch_icon: " "branch_identical_icon: "≡"branch_ahead_icon: "↑"branch_behind_icon: "↓"branch_gone_icon: "≢"branch_max_length: 25truncate_symbol: ""github_icon: ""gitlab_icon: ""bitbucket_icon: ""azure_devops_icon: "ﴃ"git_icon: ""upstream_icons:
git.wanadev.org: ""git2.wanadev.org: ""template:
"{{ url .UpstreamIcon .UpstreamURL }}{{ if .UpstreamIcon }}{{ end }}{{ if .HEAD }} {{ .HEAD }}{{ end }}{{ if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }}"
- type: promptalignment: rightoverflow: breaksegments:
- type: terraformstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#844fba"background: "background"properties:
fetch_version: falsetemplate:
"行 {{ if .WorkspaceName }}{{ .WorkspaceName }}{{ end }}"
- type: pythonstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#ffe263"background: "background"properties:
home_enabled: falsefetch_virtual_env: truedisplay_default: truefetch_version: truedisplay_mode: contexttemplate:
" {{ if .Full }}{{ .Full }}{{ end }}{{ if .Venv }} ({{ .Venv }}){{ end }}"
- type: gostyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#79d4fd"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filesparse_mod_file: truetemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: ruststyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#db1010"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: rubystyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#cc342d"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: elixirstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#4e2a8e"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: nodestyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#026e00"background: "background"properties:
display_mode: filesfetch_package_manager: truefetch_version: truenpm_icon: "<#FE4A49> npm</>"yarn_icon: "<#44FFD2> yarn</>"template:
"{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }} {{ if .Full }}{{ .Full }}{{ end }}"
- type: cmakestyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#5fc004"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: angularstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#dd0031"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: dotnetstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#5c2d91"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: flutterstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#0468d7"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: haskellstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#5e5086"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: juliastyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#cb3c33"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: kotlinstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#7f52ff"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: luastyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#00007c"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: perlstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#0073a1"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: phpstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#7377ad"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: rstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#2266b8"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
"R {{ if .Full }}{{ .Full }}{{ end }}"
- type: swiftstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#ef6354"background: "background"properties:
home_enabled: falsefetch_version: truedisplay_mode: filestemplate:
" {{ if .Full }}{{ .Full }}{{ end }}"
- type: projectstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#5485a3"background: "background"template:
"{{ if or .Version .Name }}{{ end }}{{ if .Version }} {{ .Version }}{{ end }}{{ if .Name }} {{ .Name }}{{ end }}"
- type: exitstyle: diamondleading_diamond: ""trailing_diamond: " "foreground: "#eb3434"background: p:default_bgproperties:
always_enabled: falsetemplate:
"{{ if gt .Code 0 }} {{ if .Meaning }}{{ .Meaning }}{{ end }}{{ else }} {{ end }}"
- type: executiontimestyle: diamondleading_diamond: ""trailing_diamond: " "foreground: "#727272"background: p:default_bgproperties:
style: roundrockthreshold: 2000template:
" {{ if .FormattedMs }} {{ .FormattedMs }}{{ end }}"# - type: sysinfo# style: diamond# leading_diamond: ""# trailing_diamond: " "# foreground: "#898c90"# background: p:default_bg# properties:# precision: 0# template:# "{{ if .Load1 }} {{ round .Load1 0 }}%{{ end# }}{{ if .PhysicalPercentUsed }}{{ if .Load1 }} {{ end }} {{ round .PhysicalPercentUsed 0 }}%{{ end# }}{{ if .SwapPercentUsed }}{{ if or .Load1 .PhysicalPercentUsed }} {{ end }} {{ round .SwapPercentUsed 0 }}%{{ end# }}"
- type: timestyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#727272"background: p:default_bgproperties:
style: mixedtemplate:
" {{ if .CurrentDate }}{{ .CurrentDate | date .Format }}{{ end }}"
- type: promptalignment: leftnewline: truesegments:
- foreground: "#1fe64a"style: diamondleading_diamond: ""trailing_diamond: ""template:
"➜"type: texttooltips:
- type: kubectltips:
- k
- kubectl
- kind
- minikube
- helm
- kubens
- kcx
- kubectx
- kcx
- oc
- istioctl
- kogito
- k9s
- helmfile
- flux
- fluxctl
- stern
- kubeseal
- skaffold
- kubent
- kubecolorstyle: diamondleading_diamond: ""trailing_diamond: ""background: "background"foreground: "#316ce6"properties:
display_error: falseparse_kubeconfig: falsetemplate:
"ﴱ {{ if .Context }}{{ .Context }}{{ end }}{{ if .Cluster }}{{ if ne .Cluster .Context }}{{ if .Context }} :: {{ end }}{{ .Cluster }}{{ end }}{{ end }}{{ if or .Context .Cluster }} :: {{ end }}{{ if .Namespace }}{{ .Namespace }}{{ else }}default{{ end }}{{ if .User }}{{ if ne .User .Cluster }}{{ if or .Context .Cluster}} :: {{ end }}{{ .User }}{{ end }}{{ end }}"
- type: awstips:
- aws
- awlessstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#ec912d"background: "background"properties:
display_default: falsetemplate:
" {{ if .Profile }}{{.Profile}}{{ end }}{{ if .Region }}{{ if .Profile }}@{{ end }}{{ .Region }}{{ end }}"
- type: aztips:
- azstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#0078d4"background: "background"properties:
source: first_matchtemplate:
"ﴃ {{ if .User.Name }}{{ .User.Name }}{{ end }}{{ if .EnvironmentName}}{{ if .User.Name }}@{{ end }}{{ .EnvironmentName }}{{ end }}"
- type: gcptips:
- gcloud
- gcs
- gsutilstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#1a73e8"background: "background"template:
" {{ if .Account }}{{ .Account }}{{ end }}{{ if .Region }}{{ if .Account }}@{{ end }}{{ .Region }}{{ end }}{{ if .Project }}{{ if or .Account .Region }} :: {{ end }}{{ .Project }}{{ end }}"
- type: argocdtips:
- argo
- argocdstyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#ef754f"background: "background"template:
" {{ if .User }}{{ .User }}{{ end }}{{ if .Server }}{{ if .User }}@{{ end }}{{ .Server }}{{ end }}{{ if .Name }}{{ id or .User .Server }} :: {{ end }}{{ .Name }}{{ end }}"
- type: dockertips:
- d
- docker
- dc
- docker-composestyle: diamondleading_diamond: ""trailing_diamond: ""foreground: "#2496ed"background: "background"template:
" {{ if .Context }}{{ .Context }}{{ end }}"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there ! Here my custom theme, with many segments for pretty much every use case ! It makes use of tooltips to keep a clean prompt but get the right information when needed.
Here is a showcase:
I tried to submit it in #3713 but seems like we cannot submit themes at the moment, but feel free to get the code below !
kema.omp.yaml
Beta Was this translation helpful? Give feedback.
All reactions