mirror of
https://github.com/cupcakearmy/dotfiles.git
synced 2024-12-22 16:26:32 +00:00
use oh my posh
This commit is contained in:
parent
87c7325934
commit
1fc6b47e9f
@ -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
|
||||
|
@ -1,4 +1,3 @@
|
||||
jorgebucaran/nvm.fish
|
||||
jorgebucaran/fisher
|
||||
ilancosman/tide@v5
|
||||
jethrokuan/z
|
||||
|
104
files/omp/powerlevel10k_modern.omp.json
Normal file
104
files/omp/powerlevel10k_modern.omp.json
Normal 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
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user