From 3023838d1b3460da62eb2207a5bc588f8005a511 Mon Sep 17 00:00:00 2001 From: baduhai Date: Fri, 20 Jan 2023 14:33:22 -0300 Subject: [PATCH] Migrate to oh-my-posh for shell theming --- users/common/programs.nix | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/users/common/programs.nix b/users/common/programs.nix index 9d167b0..aae9b3a 100644 --- a/users/common/programs.nix +++ b/users/common/programs.nix @@ -21,6 +21,12 @@ tabsize = 2; }; }; + oh-my-posh = { + enable = true; + enableBashIntegration = true; + enableFishIntegration = true; + settings = builtins.fromJSON (builtins.unsafeDiscardStringContext (builtins.readFile "${inputs.dotfiles}/montys.omp.json")); + }; fish = { enable = true; interactiveShellInit = "any-nix-shell fish --info-right | source"; @@ -35,26 +41,9 @@ tsh = "ssh -o RequestTTY=yes $argv tmux -u -CC new -A -s tmux-main"; }; shellInit = '' - set -g theme_date_format "+%H:%M" - set -g theme_date_timezone America/Bahia - set -g theme_avoid_ambiguous_glyphs yes - set -g theme_color_scheme dark - set -g theme_nerd_fonts yes - set -g theme_title_display_user yes - set -g theme_title_display_process yes - set -g theme_display_git_default_branch yes set -g -x FONTCONFIG_FILE ${pkgs.fontconfig.out}/etc/fonts/fonts.conf ''; plugins = [ - { - name = "bobthefish"; - src = pkgs.fetchFromGitHub { - owner = "oh-my-fish"; - repo = "theme-bobthefish"; - rev = "2dcfcab653ae69ae95ab57217fe64c97ae05d8de"; - sha256 = "jBbm0wTNZ7jSoGFxRkTz96QHpc5ViAw9RGsRBkCQEIU="; - }; - } { name = "bang-bang"; src = pkgs.fetchFromGitHub {