diff --git a/hmModules/shell/catppuccin_mocha.omp.json b/hmModules/shell/catppuccin_mocha.omp.json new file mode 100644 index 0000000..c5c74c8 --- /dev/null +++ b/hmModules/shell/catppuccin_mocha.omp.json @@ -0,0 +1,61 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "palette": { + "os": "#ACB0BE", + "closer": "p:os", + "pink": "#F5C2E7", + "lavender": "#B4BEFE", + "blue": "#89B4FA" + }, + "blocks": [ + { + "alignment": "left", + "segments": [ + { + "foreground": "p:blue", + "style": "plain", + "template": "{{ .UserName }}@{{ .HostName }} ", + "type": "session" + }, + { + "foreground": "p:pink", + "properties": { + "folder_icon": "..\ue5fe..", + "home_icon": "~", + "style": "agnoster_short" + }, + "style": "plain", + "template": "{{ .Path }} ", + "type": "path" + }, + { + "foreground": "p:lavender", + "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", + "template": "\uf105", + "type": "text" + } + ], + "type": "prompt" + } + ], + "final_space": true, + "version": 3 +} diff --git a/hmModules/shell/default.nix b/hmModules/shell/default.nix index c654977..6c7e5c1 100644 --- a/hmModules/shell/default.nix +++ b/hmModules/shell/default.nix @@ -84,7 +84,12 @@ programs.thefuck.enable = true; programs.oh-my-posh = { enable = true; - useTheme = "catppuccin_mocha"; + # same as "captuccin_mocha" but without the OS logo + settings = lib.mkForce ( + builtins.fromJSON ( + builtins.unsafeDiscardStringContext (builtins.readFile ./catppuccin_mocha.omp.json) + ) + ); }; programs.zellij.enableBashIntegration = false;