Add FZF shell integration
parent
ce87e588ad
commit
d9df158147
.config/theme
|
@ -20,6 +20,7 @@
|
|||
"properties": {
|
||||
"alpine": "\uf300",
|
||||
"arch": "\uf303",
|
||||
"cache_duration": "none",
|
||||
"centos": "\uf304",
|
||||
"debian": "\uf306",
|
||||
"elementary": "\uf309",
|
||||
|
@ -34,34 +35,38 @@
|
|||
"ubuntu": "\uf31c",
|
||||
"windows": "\ue70f"
|
||||
},
|
||||
"style": "diamond",
|
||||
"leading_diamond": "\u256d\u2500\ue0b2",
|
||||
"template": " {{ .Icon }} ",
|
||||
"foreground": "p:text",
|
||||
"background": "p:mauve",
|
||||
"type": "os"
|
||||
"type": "os",
|
||||
"style": "diamond"
|
||||
},
|
||||
{
|
||||
"style": "powerline",
|
||||
"properties": {
|
||||
"cache_duration": "none"
|
||||
},
|
||||
"template": " {{ .UserName }} ",
|
||||
"foreground": "p:darktext",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"background": "p:grey",
|
||||
"type": "session"
|
||||
"type": "session",
|
||||
"style": "powerline"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"cache_duration": "none",
|
||||
"folder_icon": "\u2026",
|
||||
"folder_separator_icon": " <transparent>\ue0b1</> ",
|
||||
"max_depth": 3,
|
||||
"style": "agnoster_short"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " {{ .Path }} ",
|
||||
"foreground": "p:text",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"background": "p:blue",
|
||||
"type": "path"
|
||||
"type": "path",
|
||||
"style": "powerline"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
|
@ -69,16 +74,17 @@
|
|||
"branch_icon": "\uf418 ",
|
||||
"branch_identical_icon": "\uf444",
|
||||
"branch_max_length": 25,
|
||||
"cache_duration": "none",
|
||||
"fetch_stash_count": true,
|
||||
"fetch_status": true
|
||||
},
|
||||
"style": "diamond",
|
||||
"leading_diamond": "<transparent,background>\ue0b0</>",
|
||||
"trailing_diamond": "\ue0b0",
|
||||
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} <transparent>\ue0b1</> <#121318>\uf044 {{ .Working.String }}</>{{ end }}{{ if .Staging.Changed }} <transparent>\ue0b1</> <#121318>\uf046 {{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0 }} <transparent>\ue0b1</> <#121318>\ueb4b {{ .StashCount }}</>{{ end }} ",
|
||||
"foreground": "p:text",
|
||||
"background": "p:green",
|
||||
"type": "git",
|
||||
"style": "diamond",
|
||||
"background_templates": [
|
||||
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:maroon{{ end }}"
|
||||
]
|
||||
|
@ -93,26 +99,28 @@
|
|||
{
|
||||
"properties": {
|
||||
"always_enabled": true,
|
||||
"cache_duration": "none",
|
||||
"style": "austin"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " \ueba2 {{ .FormattedMs }} ",
|
||||
"foreground": "p:darktext",
|
||||
"powerline_symbol": "\ue0b2",
|
||||
"background": "p:grey",
|
||||
"type": "executiontime",
|
||||
"style": "powerline",
|
||||
"invert_powerline": true
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"cache_duration": "none",
|
||||
"time_format": "15:04:05"
|
||||
},
|
||||
"style": "diamond",
|
||||
"trailing_diamond": "\ue0b0",
|
||||
"template": " \uf073 {{ .CurrentDate | date .Format }} ",
|
||||
"foreground": "p:text",
|
||||
"background": "p:mauve",
|
||||
"type": "time",
|
||||
"style": "diamond",
|
||||
"invert_powerline": true
|
||||
}
|
||||
]
|
||||
|
@ -122,10 +130,13 @@
|
|||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"style": "plain",
|
||||
"properties": {
|
||||
"cache_duration": "none"
|
||||
},
|
||||
"template": "\u2570\u2500 {{ if .Root }}#{{else}}${{end}}",
|
||||
"foreground": "p:mauve",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"style": "plain"
|
||||
}
|
||||
],
|
||||
"newline": true
|
||||
|
|
3
.zshrc
3
.zshrc
|
@ -62,6 +62,9 @@ eval "$(oh-my-posh init zsh --config ~/.config/theme/quick-term.omp.json)"
|
|||
eval "$(zoxide init zsh --cmd cd)"
|
||||
|
||||
|
||||
# Shell integration (kill, vim, etc)
|
||||
source <(fzf --zsh)
|
||||
|
||||
# And use Catppuccin Macchiato theme for ZSH fast hightlight plugin (LOCAL means searching in /usr/local/share/fsh)
|
||||
fast-theme LOCAL:catppuccin-macchiato >/dev/null
|
||||
|
||||
|
|
Loading…
Reference in New Issue