From 88a5d29d75e06dc18109fe06c1dac61a4c2a88ad Mon Sep 17 00:00:00 2001 From: Julian Date: Thu, 1 Aug 2024 01:49:15 +0000 Subject: [PATCH] fix --- .../themes/powerlevel10k_lean.omp.json | 47 -------- .../themes/powerlevel10k_modern.omp.json | 104 ------------------ .../Microsoft.PowerShell_profile.ps1 | 2 +- dot_config/powershell/profile.ps1 | 2 - 4 files changed, 1 insertion(+), 154 deletions(-) delete mode 100644 dot_config/oh-my-posh/themes/powerlevel10k_lean.omp.json delete mode 100644 dot_config/oh-my-posh/themes/powerlevel10k_modern.omp.json diff --git a/dot_config/oh-my-posh/themes/powerlevel10k_lean.omp.json b/dot_config/oh-my-posh/themes/powerlevel10k_lean.omp.json deleted file mode 100644 index 48c69e8..0000000 --- a/dot_config/oh-my-posh/themes/powerlevel10k_lean.omp.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", - "blocks": [ - { - "segments": [ - { - "foreground": "#00C5C7", - "properties": { - "time_format": "15:04:05" - }, - "style": "plain", - "template": " {{ .CurrentDate | date .Format }} ", - "type": "time" - } - ], - "type": "rprompt" - }, - { - "alignment": "left", - "segments": [ - { - "foreground": "#77E4F7", - "properties": { - "style": "full" - }, - "style": "plain", - "template": "{{ .Path }} ", - "type": "path" - }, - { - "foreground": "#FFE700", - "style": "plain", - "template": "{{ .HEAD }} ", - "type": "git" - }, - { - "foreground": "#43D426", - "style": "plain", - "template": "\u276f ", - "type": "text" - } - ], - "type": "prompt" - } - ], - "version": 2 -} diff --git a/dot_config/oh-my-posh/themes/powerlevel10k_modern.omp.json b/dot_config/oh-my-posh/themes/powerlevel10k_modern.omp.json deleted file mode 100644 index d12186b..0000000 --- a/dot_config/oh-my-posh/themes/powerlevel10k_modern.omp.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", - "blocks": [ - { - "alignment": "left", - "segments": [ - { - "background": "#ffffff", - "foreground": "#000000", - "leading_diamond": "\ue0b6", - "style": "diamond", - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", - "trailing_diamond": "\ue0b4", - "type": "os" - }, - { - "background": "#0000ff", - "foreground": "#000000", - "powerline_symbol": "\ue0b4", - "properties": { - "style": "full" - }, - "style": "powerline", - "template": " \uf0e7 ", - "type": "root" - }, - { - "background": "#0000ff", - "foreground": "#ffffff", - "powerline_symbol": "\ue0b4", - "properties": { - "style": "full" - }, - "style": "powerline", - "template": " {{ .Path }} ", - "type": "path" - }, - { - "background": "#D4E157", - "foreground": "#000000", - "powerline_symbol": "\ue0b4", - "style": "powerline", - "template": " {{ .HEAD }} ", - "type": "git" - } - ], - "type": "prompt" - }, - { - "alignment": "right", - "segments": [ - { - "background": "#D4E157", - "foreground": "#000000", - "leading_diamond": "\ue0b6", - "style": "diamond", - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} \ue0b6", - "type": "python" - }, - { - "background": "#7FD5EA", - "foreground": "#ffffff", - "leading_diamond": "\ue0b6", - "style": "diamond", - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue0b6", - "type": "go" - }, - { - "background": "#ffffff", - "foreground": "#000000", - "leading_diamond": "\ue0b6", - "properties": { - "time_format": "15:04:05" - }, - "style": "diamond", - "template": " {{ .CurrentDate | date .Format }} ", - "trailing_diamond": "\ue0b4", - "type": "time" - } - ], - "type": "prompt" - }, - { - "alignment": "left", - "newline": true, - "segments": [ - { - "foreground": "#D4E157", - "foreground_templates": [ - "{{ if gt .Code 0 }}#FF5252{{ end }}" - ], - "properties": { - "always_enabled": true - }, - "style": "plain", - "template": "\u276f ", - "type": "status" - } - ], - "type": "prompt" - } - ], - "version": 2 -} diff --git a/dot_config/powershell/Microsoft.PowerShell_profile.ps1 b/dot_config/powershell/Microsoft.PowerShell_profile.ps1 index c147792..b2af4d6 100644 --- a/dot_config/powershell/Microsoft.PowerShell_profile.ps1 +++ b/dot_config/powershell/Microsoft.PowerShell_profile.ps1 @@ -1,3 +1,3 @@ # ~/.config/powershell/Microsoft.PowerShell_profile.ps1: executed by the PowerShell console host on startup. -oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/powerlevel10k_modern.omp.json" | Invoke-Expression +oh-my-posh init pwsh --config "$env:HOME/.cache/oh-my-posh/themes/powerlevel10k_modern.omp.json" | Invoke-Expression diff --git a/dot_config/powershell/profile.ps1 b/dot_config/powershell/profile.ps1 index c66f9b7..5bbcda5 100644 --- a/dot_config/powershell/profile.ps1 +++ b/dot_config/powershell/profile.ps1 @@ -1,3 +1 @@ # ~/.config/powershell/profile.ps1: executed by all PowerShell hosts on startup. - -$env:POSH_THEMES_PATH="$HOME/.config/oh-my-posh/themes"