Fix ZSH theme

master
Quentin Duchemin 2024-02-07 17:54:38 +01:00
parent 6cda4992bc
commit 942256006a
2 changed files with 1 additions and 43 deletions

View File

@ -1,6 +1,5 @@
{ {
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
<<<<<<< HEAD
"palette": { "palette": {
"text": "#ffffff", "text": "#ffffff",
"darktext": "#6e738d", "darktext": "#6e738d",
@ -12,21 +11,14 @@
"grey": "#e4e4e4", "grey": "#e4e4e4",
"ahead": "#54433a" "ahead": "#54433a"
}, },
=======
>>>>>>> d5a4cd4 (Add file for Oh-my-posh theme)
"blocks": [ "blocks": [
{ {
"alignment": "left", "alignment": "left",
"newline": true, "newline": true,
"segments": [ "segments": [
{ {
<<<<<<< HEAD
"background": "p:mauve", "background": "p:mauve",
"foreground": "p:text", "foreground": "p:text",
=======
"background": "#d75f00",
"foreground": "#f2f3f8",
>>>>>>> d5a4cd4 (Add file for Oh-my-posh theme)
"properties": { "properties": {
"alpine": "\uf300", "alpine": "\uf300",
"arch": "\uf303", "arch": "\uf303",
@ -50,26 +42,16 @@
"type": "os" "type": "os"
}, },
{ {
<<<<<<< HEAD
"background": "p:grey", "background": "p:grey",
"foreground": "p:darktext", "foreground": "p:darktext",
=======
"background": "#e4e4e4",
"foreground": "#4e4e4e",
>>>>>>> d5a4cd4 (Add file for Oh-my-posh theme)
"style": "powerline", "style": "powerline",
"powerline_symbol": "\ue0b0", "powerline_symbol": "\ue0b0",
"template": " {{ .UserName }} ", "template": " {{ .UserName }} ",
"type": "session" "type": "session"
}, },
{ {
<<<<<<< HEAD
"background": "p:blue", "background": "p:blue",
"foreground": "p:text", "foreground": "p:text",
=======
"background": "#0087af",
"foreground": "#f2f3f8",
>>>>>>> d5a4cd4 (Add file for Oh-my-posh theme)
"properties": { "properties": {
"style": "agnoster_short", "style": "agnoster_short",
"max_depth": 3, "max_depth": 3,
@ -82,20 +64,10 @@
"type": "path" "type": "path"
}, },
{ {
<<<<<<< HEAD
"background": "p:green", "background": "p:green",
"foreground": "p:text", "foreground": "p:text",
"background_templates": [ "background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:maroon{{ end }}" "{{ if or (.Working.Changed) (.Staging.Changed) }}p:maroon{{ end }}"
=======
"background": "#378504",
"foreground": "#f2f3f8",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#a97400{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#54433a{{ end }}",
"{{ if gt .Ahead 0 }}#744d89{{ end }}",
"{{ if gt .Behind 0 }}#744d89{{ end }}"
>>>>>>> d5a4cd4 (Add file for Oh-my-posh theme)
], ],
"properties": { "properties": {
"branch_max_length": 25, "branch_max_length": 25,
@ -118,13 +90,8 @@
"alignment": "right", "alignment": "right",
"segments": [ "segments": [
{ {
<<<<<<< HEAD
"background": "p:grey", "background": "p:grey",
"foreground": "p:darktext", "foreground": "p:darktext",
=======
"background": "#e4e4e4",
"foreground": "#585858",
>>>>>>> d5a4cd4 (Add file for Oh-my-posh theme)
"properties": { "properties": {
"style": "austin", "style": "austin",
"always_enabled": true "always_enabled": true
@ -136,13 +103,8 @@
"type": "executiontime" "type": "executiontime"
}, },
{ {
<<<<<<< HEAD
"background": "p:mauve", "background": "p:mauve",
"foreground": "p:text", "foreground": "p:text",
=======
"background": "#d75f00",
"foreground": "#f2f3f8",
>>>>>>> d5a4cd4 (Add file for Oh-my-posh theme)
"properties": { "properties": {
"time_format": "15:04:05" "time_format": "15:04:05"
}, },
@ -160,11 +122,7 @@
"newline": true, "newline": true,
"segments": [ "segments": [
{ {
<<<<<<< HEAD
"foreground": "p:mauve", "foreground": "p:mauve",
=======
"foreground": "#d75f00",
>>>>>>> d5a4cd4 (Add file for Oh-my-posh theme)
"style": "plain", "style": "plain",
"template": "\u2570\u2500 {{ if .Root }}#{{else}}${{end}}", "template": "\u2570\u2500 {{ if .Root }}#{{else}}${{end}}",
"type": "text" "type": "text"

2
.zshrc
View File

@ -64,7 +64,7 @@ eval "$(oh-my-posh init zsh --config ~/.config/theme/quick-term.omp.json)"
fast-theme LOCAL:catppuccin-macchiato >/dev/null fast-theme LOCAL:catppuccin-macchiato >/dev/null
# Preferred editor for local and remote sessions # Preferred editor for local and remote sessions
export EDITOR=vim export EDITOR=nvim
# Do not print user@hostname if user is myself # Do not print user@hostname if user is myself
DEFAULT_USER=`whoami` DEFAULT_USER=`whoami`