Added oh-mu-posh with good config

This commit is contained in:
FredzyW 2024-06-14 22:41:40 +02:00
parent 2965bd8796
commit a217fc98f3
3 changed files with 108 additions and 13 deletions

View file

@ -24,6 +24,7 @@
../moduler/common/ssh.nix
../moduler/common/aerc.nix
../moduler/common/rbw.nix
../moduler/common/oh-my-posh.nix
];
nixpkgs = {

View file

@ -20,10 +20,14 @@
name = "foreign-env";
src = pkgs.fishPlugins.foreign-env.src;
}
{
name = "pure";
src = pkgs.fishPlugins.pure.src;
}
# {
# name = "pure";
# src = pkgs.fishPlugins.pure.src;
# }
# {
# name = "tide";
# src = pkgs.fishPlugins.tide.src;
# }
{
name = "fzf";
src = pkgs.fishPlugins.fzf.src;
@ -50,14 +54,14 @@
interactiveShellInit = ''
set fish_greeting # Disable greeting
set -Ux FZF_DEFAULT_OPTS "--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4"
set --universal pure_symbol_prompt
set --universal pure_enable_nixdevshell true
set --universal pure_color_primary f5a97f
set --universal pure_color_danger ed8796
set --universal pure_color_success a6da95
set --universal pure_color_warning eed49f
set --universal pure_color_light f4dbd6
set --universal pure_color_mute c6a0f6
# set --universal pure_symbol_prompt
# set --universal pure_enable_nixdevshell true
# set --universal pure_color_primary f5a97f
# set --universal pure_color_danger ed8796
# set --universal pure_color_success a6da95
# set --universal pure_color_warning eed49f
# set --universal pure_color_light f4dbd6
# set --universal pure_color_mute c6a0f6
# set --universal pure_color_danger ed8796
# set --universal pure_color_danger ed8796
'';

View file

@ -3,6 +3,96 @@
programs.oh-my-posh = {
enable = true;
enableFishIntegration = true;
useTheme = "catppuccin_macchiato";
settings = {
"$schema"= "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json";
"palette" = {
"os"= "#ACB0BE";
"closer"= "p:os";
"pink"= "#F5BDE6";
"lavender"= "#B7BDF8";
"blue"= "#8AADF4";
"peach" = "#f5a97f";
"red" = "#ed8796";
"green" = "#a6da95";
};
"blocks"= [
{
"alignment"= "left";
"newline" = true;
"type"= "prompt";
"segments" = [
{
"foreground"= "p:peach";
"properties"= {
# "folder_icon"= "..\\ue5fe..";
"home_icon"= "~";
"style"= "unique";
};
"style"= "plain";
"template"= "{{ .Path }} ";
"type"= "path";
}
{
"foreground"= "p:green";
"properties"= {
# "branch_icon"= "\\ue725 ";
# "cherry_pick_icon"= "\\ue29b ";
# "commit_icon"= "\\uf417 ";
"fetch_status"= false;
"fetch_upstream_icon"= false;
# "merge_icon"= "\\ue727 ";
# "no_commits_icon"= "\\uf0c3 ";
# "rebase_icon"= "\\ue728 ";
# "revert_icon"= "\\uf0e2 ";
# "tag_icon"= "\\uf412 ";
};
"template"= "{{ .HEAD }} ";
"style"= "plain";
"type"= "git";
}
{
"style"= "plain";
"foreground"= "p:closer";
"type"= "text";
}
];
}
{
"type"= "prompt";
"alignment"= "left";
"newline" = true;
"segments" = [
{
"type" = "text";
"style" = "plain";
"background"= "transparent";
"foreground_templates"= [
"{{if gt .Code 0}}p:red{{end}}"
"{{if eq .Code 0}}p:green{{end}}"
];
"template"= "";
}
];
}
];
"final_space"= true;
"version"= 2;
"transient_prompt"= {
"background"= "transparent";
"foreground_templates"= [
"{{if gt .Code 0}}p:red{{end}}"
"{{if eq .Code 0}}p:green{{end}}"
];
"template"= " ";
};
"secondary_prompt"= {
"background"= "transparent";
"foreground_templates"= [
"{{if gt .Code 0}}p:red{{end}}"
"{{if eq .Code 0}}p:green{{end}}"
];
"template"= " ";
};
};
};
}