use oh my posh

This commit is contained in:
Niccolo Borgioli 2023-02-27 11:35:30 +01:00
parent 87c7325934
commit 1fc6b47e9f
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
4 changed files with 107 additions and 1 deletions

View File

@ -23,3 +23,5 @@ if [ -f '$HOME/Desktop/google-cloud-sdk/path.fish.inc' ]; . '$HOME/Desktop/googl
set -gx PNPM_HOME "$HOME/Library/pnpm"
set -gx PATH "$PNPM_HOME" $PATH
# pnpm end
oh-my-posh init fish --config ~/.config/omp/powerlevel10k_modern.omp.json | source

View File

@ -1,4 +1,3 @@
jorgebucaran/nvm.fish
jorgebucaran/fisher
ilancosman/tide@v5
jethrokuan/z

View File

@ -0,0 +1,104 @@
{
"$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 }} <transparent>\ue0b6</>",
"type": "python"
},
{
"background": "#7FD5EA",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
"style": "diamond",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} <transparent>\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": "exit"
}
],
"type": "prompt"
}
],
"version": 2
}

View File

@ -15,3 +15,4 @@
~/.config/key-mapper: files/key-mapper
~/.gitignore_global: files/git/gitignore_global
~/.tmux.conf: files/tmux.conf
~/.config/omp: files/omp