Skip to content

Instantly share code, notes, and snippets.

@cdhunt
Last active August 30, 2022 13:04
Show Gist options
  • Select an option

  • Save cdhunt/02b0c9ca74bef31a18833440256af0df to your computer and use it in GitHub Desktop.

Select an option

Save cdhunt/02b0c9ca74bef31a18833440256af0df to your computer and use it in GitHub Desktop.

Revisions

  1. cdhunt revised this gist Aug 30, 2022. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion night-owl.chunt.omp.json
    Original file line number Diff line number Diff line change
    @@ -30,7 +30,6 @@
    "foreground": "#011627",
    "leading_diamond": "<transparent,#F8B682>\ue0b0</>",
    "properties": {
    "folder_icon": "\uf07c ",
    "folder_separator_icon": " <#011627>\ue0b1</> ",
    "home_icon": "\uf7db ",
    "style": "mixed",
  2. cdhunt revised this gist Aug 29, 2022. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions night-owl.chunt.omp.json
    Original file line number Diff line number Diff line change
    @@ -150,11 +150,8 @@
    "console_title_template": "{{ .Folder }}",
    "transient_prompt": {
    "background": "transparent",
    "foreground": "#F48024",
    "foreground_templates": [
    "{{ if gt Segments.Exit.Code 0 }}#C4524F{{ end }}"
    ],
    "template": "\uf16c <#d6deeb>\ue285</> "
    "foreground": "#d6deeb",
    "template": "\uf017 {{ now | date \"03:04:05\" }} \uf07c {{ .PWD }} \ue285 "
    },
    "version": 2
    }
  3. cdhunt created this gist Aug 29, 2022.
    160 changes: 160 additions & 0 deletions night-owl.chunt.omp.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,160 @@
    {
    "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
    "blocks": [
    {
    "alignment": "left",
    "segments": [
    {
    "background": "#26C6DA",
    "foreground": "#011627",
    "leading_diamond": "\u256d\u2500\ue0b6",
    "properties": {
    "windows": "\uf871"
    },
    "style": "diamond",
    "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
    "trailing_diamond": "\ue0b0",
    "type": "os"
    },
    {
    "background": "#ef5350",
    "foreground": "#ffeb95",
    "leading_diamond": "<transparent,#ef5350>\ue0b0</>",
    "style": "diamond",
    "template": " \uf292 ",
    "trailing_diamond": "\ue0b0",
    "type": "root"
    },
    {
    "background": "#F8B682",
    "foreground": "#011627",
    "leading_diamond": "<transparent,#F8B682>\ue0b0</>",
    "properties": {
    "folder_icon": "\uf07c ",
    "folder_separator_icon": " <#011627>\ue0b1</> ",
    "home_icon": "\uf7db ",
    "style": "mixed",
    "mixed_threshold": 5
    },
    "style": "diamond",
    "template": " {{ .Path }} ",
    "trailing_diamond": "\ue0b0",
    "type": "path"
    },
    {
    "background": "#ffeb3b",
    "background_templates": [
    "{{ if or (.Working.Changed) (.Staging.Changed) }}#addb67{{ end }}",
    "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f78c6c{{ end }}",
    "{{ if gt .Ahead 0 }}#26C6DA{{ end }}",
    "{{ if gt .Behind 0 }}#c792ea{{ end }}"
    ],
    "foreground": "#011627",
    "powerline_symbol": "\ue0b0",
    "properties": {
    "branch_icon": "\ue725 ",
    "fetch_stash_count": true,
    "fetch_status": true,
    "fetch_upstream_icon": true,
    "fetch_worktree_count": true
    },
    "style": "powerline",
    "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ",
    "type": "git"
    },
    {
    "background": "#575656",
    "foreground": "#d6deeb",
    "leading_diamond": "<transparent,#575656>\ue0b0</>",
    "properties": {
    "style": "roundrock",
    "threshold": 0
    },
    "style": "diamond",
    "template": " {{ .FormattedMs }} ",
    "trailing_diamond": "\ue0b4",
    "type": "executiontime"
    }
    ],
    "type": "prompt"
    },
    {
    "alignment": "right",
    "segments": [
    {
    "background": "#d6deeb",
    "foreground": "#011627",
    "leading_diamond": "\ue0b6",
    "style": "diamond",
    "template": "\uf489 {{ .Name }}",
    "trailing_diamond": "<transparent,#d6deeb>\ue0b2</>",
    "type": "shell"
    },
    {
    "background": "#ffffff",
    "foreground": "#5398c2",
    "leading_diamond": "\ue0b2",
    "style": "diamond",
    "template": " \uFD03 {{ .Name }}",
    "trailing_diamond": "<transparent,#ffffff>\ue0b2</>",
    "type": "az"
    },
    {
    "background": "#316ce4",
    "foreground": "#ffffff",
    "leading_diamond": "\ue0b2",
    "style": "diamond",
    "template": " \ufd31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} ",
    "trailing_diamond": "<#316ce4,transparent>\ue0b4</>",
    "type": "kubectl",
    "parse_kubeconfig": true
    }
    ],
    "type": "prompt"
    },
    {
    "alignment": "left",
    "newline": true,
    "segments": [
    {
    "foreground": "#26C6DA",
    "style": "plain",
    "template": "\u2570\u2500",
    "type": "text"
    },
    {
    "foreground": "#F48024",
    "foreground_templates": [
    "{{ if gt .Code 0 }}#C4524F{{ end }}"
    ],
    "properties": {
    "always_enabled": true
    },
    "style": "plain",
    "template": " \uf16c ",
    "type": "exit"
    },
    {
    "foreground": "#26C6DA",
    "properties": {
    "always_enabled": true
    },
    "style": "plain",
    "template": "\ue285 ",
    "type": "text"
    }
    ],
    "type": "prompt"
    }
    ],
    "console_title_template": "{{ .Folder }}",
    "transient_prompt": {
    "background": "transparent",
    "foreground": "#F48024",
    "foreground_templates": [
    "{{ if gt Segments.Exit.Code 0 }}#C4524F{{ end }}"
    ],
    "template": "\uf16c <#d6deeb>\ue285</> "
    },
    "version": 2
    }