diff --git a/plugins/autosuggestions b/plugins/autosuggestions deleted file mode 100644 --- a/plugins/autosuggestions +++ /dev/null @@ -1,1 +0,0 @@ -Subproject commit c3d4e576c9c86eac62884bd47c01f6faed043fc5 diff --git a/plugins/fsh b/plugins/fsh deleted file mode 100644 --- a/plugins/fsh +++ /dev/null @@ -1,1 +0,0 @@ -Subproject commit cf318e06a9b7c9f2219d78f41b46fa6e06011fd9 diff --git a/themes/spaceship.omp.json b/themes/spaceship.omp.json new file mode 100644 --- /dev/null +++ b/themes/spaceship.omp.json @@ -0,0 +1,243 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "blocks": [ + { + "type": "rprompt", + "alignment": "right", + "segments": [ + { + "properties": { + "always_enabled": false + }, + "template": "\uf0e7 {{ .String }}", + "type": "status", + "style": "plain", + "foreground_templates": [ + "{{ if .Error }}lightRed{{ end }}" + ] + }, + { + "foreground": "lightRed", + "type": "upgrade", + "style": "plain" + } + ] + }, + { + "type": "prompt", + "alignment": "left", + "segments": [ + { + "properties": { + "style": "folder" + }, + "template": "{{ .Path }} ", + "foreground": "cyan", + "type": "path", + "style": "plain" + }, + { + "properties": { + "branch_icon": " \ue0a0 ", + "branch_identical_icon": "", + "fetch_bare_info": true, + "fetch_status": true, + "mapped_branches": { + "bug/*": "🐛 ", + "feat/*": "\ud83d\ude80 " + }, + "source": "cli" + }, + "template": "<#ffffff>in{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }} ", + "foreground": "#ff94df", + "type": "git", + "style": "plain", + "foreground_templates": [ + "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}", + "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}", + "{{ if gt .Ahead 0 }}#B388FF{{ end }}", + "{{ if gt .Behind 0 }}#B388FB{{ end }}" + ] + }, + { + "template": "<#ffffff>is {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\ued75 {{.Version}}{{ end }}{{ end }} ", + "foreground": "red", + "type": "project", + "style": "plain" + }, + { + "properties": { + "extensions": [ + "package-lock.json" + ] + }, + "template": "<#ffffff>with \udb82\udf15 {{ .Full }} ", + "foreground": "red", + "type": "npm", + "style": "plain" + }, + { + "properties": { + "extensions": [ + "yarn.lock" + ] + }, + "template": "<#ffffff>with \udb80\udd1b {{ .Full }} ", + "foreground": "#9555BB", + "type": "yarn", + "style": "plain" + }, + { + "properties": { + "extensions": [ + "pnpm-lock.yaml" + ] + }, + "template": "<#ffffff>with \udb82\udf17 {{ .Full }} ", + "foreground": "#F69220", + "type": "pnpm", + "style": "plain" + }, + { + "template": "<#ffffff>via \u2b22 {{ .Full }} ", + "foreground": "green", + "type": "node", + "style": "plain" + }, + { + "properties": { + "extensions": [ + "deno.json" + ] + }, + "template": "<#ffffff>via 🦕 {{ .Full }} ", + "foreground": "#439EB6", + "type": "deno", + "style": "plain" + }, + { + "properties": { + "extensions": [ + "next.config.js", + "vite.config.ts", + "tailwind.config.*" + ] + }, + "template": "<#ffffff>with \ue7ba {{ .Full }} ", + "foreground": "#81a1c1", + "type": "react", + "style": "plain" + }, + { + "template": "<#ffffff>via \udb84\udc62 {{.WorkspaceName}} ", + "foreground": "#7B42BC", + "type": "terraform", + "style": "plain" + }, + { + "template": "<#ffffff>on \udb82\udd67 {{ .Project }} ", + "foreground": "#FFA000", + "type": "firebase", + "style": "plain" + }, + { + "template": "<#ffffff>via 🍞 {{ .Full }} ", + "foreground": "#F6F1E9", + "type": "bun", + "style": "plain" + }, + { + "template": "<#ffffff>via 🦀 {{ .Full }} ", + "foreground": "red", + "type": "rust", + "style": "plain" + }, + { + "properties": { + "fetch_version": false + }, + "template": "<#ffffff>via \ue634 ", + "foreground": "#CB1DEE", + "type": "kotlin", + "style": "plain" + }, + { + "template": "<#ffffff>via \ue791 {{ .Full }} ", + "foreground": "#CC342D", + "type": "ruby", + "style": "plain" + }, + { + "template": "<#ffffff>via \ue620 {{ .Full }} ", + "foreground": "#3b3beb", + "type": "lua", + "style": "plain" + }, + { + "template": "<#ffffff>via \ue235 {{ .Full }} ", + "foreground": "#3676AB", + "type": "python", + "style": "plain" + }, + { + "template": "<#ffffff>via 🐹 {{ .Full }} ", + "foreground": "#79D4FD", + "type": "go", + "style": "plain" + }, + { + "template": "<#ffffff>on \udb82\udc68 v27.3.1 ({{ .Context }}) ", + "foreground": "cyan", + "type": "docker", + "style": "plain" + }, + { + "properties": { + "style": "austin", + "threshold": 2500 + }, + "template": "<#ffffff>in {{ .FormattedMs }} ", + "foreground": "lightYellow", + "type": "executiontime", + "style": "plain" + } + ], + "newline": true + }, + { + "type": "prompt", + "alignment": "left", + "segments": [ + { + "properties": { + "charging_icon": "\uf0e7 ", + "discharging_icon": "\u21e3", + "not_charging_icon": "\udb80\udc83 " + }, + "template": "{{ if le .Percentage 20 }}{{ if not .Error }}{{ .Icon }}{{ .Percentage }}% {{ end }}{{ end }}", + "type": "battery", + "style": "plain", + "foreground_templates": [ + "{{if eq \"Charging\" .State.String}}{{ if le .Percentage 10 }}#ff5722{{else}}#FFFF00{{end}}{{end}}", + "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}" + ] + }, + { + "properties": { + "always_enabled": true + }, + "template": "", + "foreground": "lightGreen", + "type": "status", + "style": "plain", + "foreground_templates": [ + "{{ if .Error }}lightRed{{ end }}" + ] + } + ], + "newline": true + } + ], + "version": 3, + "final_space": true +} diff --git a/themes/spaceship.tmux.json b/themes/spaceship.tmux.json new file mode 100644 --- /dev/null +++ b/themes/spaceship.tmux.json @@ -0,0 +1,221 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "blocks": [ + { + "type": "rprompt", + "alignment": "right", + "segments": [ + { + "properties": { + "always_enabled": false + }, + "template": "\uf0e7 {{ .String }}", + "type": "status", + "style": "plain", + "foreground_templates": ["{{ if .Error }}lightRed{{ end }}"] + }, + { + "foreground": "lightRed", + "type": "upgrade", + "style": "plain" + } + ] + }, + { + "type": "prompt", + "alignment": "left", + "segments": [ + { + "properties": { + "style": "folder" + }, + "template": "\n{{ .Path }} ", + "foreground": "cyan", + "type": "path", + "style": "plain" + }, + { + "properties": { + "branch_icon": " \ue0a0 ", + "branch_identical_icon": "", + "fetch_bare_info": true, + "fetch_status": true, + "mapped_branches": { + "bug/*": "🐛 ", + "feat/*": "\ud83d\ude80 " + }, + "source": "cli" + }, + "template": "<#ffffff>in{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }} ", + "foreground": "#ff94df", + "type": "git", + "style": "plain", + "foreground_templates": [ + "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}", + "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}", + "{{ if gt .Ahead 0 }}#B388FF{{ end }}", + "{{ if gt .Behind 0 }}#B388FB{{ end }}" + ] + }, + { + "template": "<#ffffff>is {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\ued75 {{.Version}}{{ end }}{{ end }} ", + "foreground": "red", + "type": "project", + "style": "plain" + }, + { + "properties": { + "extensions": ["package-lock.json"] + }, + "template": "<#ffffff>with \udb82\udf15 {{ .Full }} ", + "foreground": "red", + "type": "npm", + "style": "plain" + }, + { + "properties": { + "extensions": ["yarn.lock"] + }, + "template": "<#ffffff>with \udb80\udd1b {{ .Full }} ", + "foreground": "#9555BB", + "type": "yarn", + "style": "plain" + }, + { + "properties": { + "extensions": ["pnpm-lock.yaml"] + }, + "template": "<#ffffff>with \udb82\udf17 {{ .Full }} ", + "foreground": "#F69220", + "type": "pnpm", + "style": "plain" + }, + { + "template": "<#ffffff>via \u2b22 {{ .Full }} ", + "foreground": "green", + "type": "node", + "style": "plain" + }, + { + "properties": { + "extensions": ["deno.json"] + }, + "template": "<#ffffff>via 🦕 {{ .Full }} ", + "foreground": "#439EB6", + "type": "deno", + "style": "plain" + }, + { + "properties": { + "extensions": ["next.config.js", "vite.config.ts", "tailwind.config.*"] + }, + "template": "<#ffffff>with \ue7ba {{ .Full }} ", + "foreground": "#81a1c1", + "type": "react", + "style": "plain" + }, + { + "template": "<#ffffff>via \udb84\udc62 {{.WorkspaceName}} ", + "foreground": "#7B42BC", + "type": "terraform", + "style": "plain" + }, + { + "template": "<#ffffff>on \udb82\udd67 {{ .Project }} ", + "foreground": "#FFA000", + "type": "firebase", + "style": "plain" + }, + { + "template": "<#ffffff>via 🍞 {{ .Full }} ", + "foreground": "#F6F1E9", + "type": "bun", + "style": "plain" + }, + { + "template": "<#ffffff>via 🦀 {{ .Full }} ", + "foreground": "red", + "type": "rust", + "style": "plain" + }, + { + "properties": { + "fetch_version": false + }, + "template": "<#ffffff>via \ue634 ", + "foreground": "#CB1DEE", + "type": "kotlin", + "style": "plain" + }, + { + "template": "<#ffffff>via \ue791 {{ .Full }} ", + "foreground": "#CC342D", + "type": "ruby", + "style": "plain" + }, + { + "template": "<#ffffff>via \ue620 {{ .Full }} ", + "foreground": "#3b3beb", + "type": "lua", + "style": "plain" + }, + { + "template": "<#ffffff>via \ue235 {{ .Full }} ", + "foreground": "#3676AB", + "type": "python", + "style": "plain" + }, + { + "template": "<#ffffff>via 🐹 {{ .Full }} ", + "foreground": "#79D4FD", + "type": "go", + "style": "plain" + }, + { + "properties": { + "style": "austin", + "threshold": 2500 + }, + "template": "<#ffffff>in {{ .FormattedMs }} ", + "foreground": "lightYellow", + "type": "executiontime", + "style": "plain" + } + ], + "newline": true + }, + { + "type": "prompt", + "alignment": "left", + "segments": [ + { + "properties": { + "charging_icon": "\uf0e7 ", + "discharging_icon": "\u21e3", + "not_charging_icon": "\udb80\udc83 " + }, + "template": "{{ if le .Percentage 20 }}{{ if not .Error }}{{ .Icon }}{{ .Percentage }}% {{ end }}{{ end }}", + "type": "battery", + "style": "plain", + "foreground_templates": [ + "{{if eq \"Charging\" .State.String}}{{ if le .Percentage 10 }}#ff5722{{else}}#FFFF00{{end}}{{end}}", + "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}" + ] + }, + { + "properties": { + "always_enabled": true + }, + "template": "", + "foreground": "lightGreen", + "type": "status", + "style": "plain", + "foreground_templates": ["{{ if .Error }}lightRed{{ end }}"] + } + ], + "newline": true + } + ], + "version": 3, + "final_space": true +} diff --git a/themes/custom/agnoster.yml b/themes/custom/agnoster.yml new file mode 100644 --- /dev/null +++ b/themes/custom/agnoster.yml @@ -0,0 +1,36 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json + +blocks: +- type: prompt + alignment: left + segments: + - properties: + max_depth: 6 + style: agnoster_short + template: " {{ .Path }} " + foreground: "15" + powerline_symbol:  + background: "0" + type: path + style: powerline + - properties: + branch_icon: " \ue0a0 " + branch_identical_icon: "" + fetch_bare_info: true + fetch_status: true + source: cli + template: "{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }} " + foreground: "#193549" + powerline_symbol:  + background: "#03FF7F" + type: git + style: powerline + foreground_templates: + - "{{ if gt .Ahead 0 }}52{{ end }}" + background_templates: + - "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}" + - "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#80fff9{{ end }}" + - "{{ if gt .Ahead 0 }}1{{ end }}" + - "{{ if gt .Behind 0 }}#B388FB{{ end }}" +version: 3 +final_space: true