diff --git a/files/fish/config.fish b/files/fish/config.fish index 0d757fc..c72338f 100644 --- a/files/fish/config.fish +++ b/files/fish/config.fish @@ -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 diff --git a/files/fish/fish_plugins b/files/fish/fish_plugins index ab436ef..c49338b 100644 --- a/files/fish/fish_plugins +++ b/files/fish/fish_plugins @@ -1,4 +1,3 @@ jorgebucaran/nvm.fish jorgebucaran/fisher -ilancosman/tide@v5 jethrokuan/z diff --git a/files/omp/powerlevel10k_modern.omp.json b/files/omp/powerlevel10k_modern.omp.json new file mode 100644 index 0000000..5b8d7a7 --- /dev/null +++ b/files/omp/powerlevel10k_modern.omp.json @@ -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 }} \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": "exit" + } + ], + "type": "prompt" + } + ], + "version": 2 +} diff --git a/install.conf.yaml b/install.conf.yaml index 7e845b0..0a0a95d 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -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