From 83679a1705d80426f186447af8b4c72bddec96bc Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 26 Mar 2024 09:54:24 +0100 Subject: [PATCH] Set $TERM early --- home/programs/terminal/shell/zsh/init.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/programs/terminal/shell/zsh/init.nix b/home/programs/terminal/shell/zsh/init.nix index 7c8f2d2..11ac55e 100644 --- a/home/programs/terminal/shell/zsh/init.nix +++ b/home/programs/terminal/shell/zsh/init.nix @@ -5,11 +5,15 @@ in { config = { programs.zsh = { + initExtraFirst = '' + # Do this early so anything that relies on $TERM can work properly + ${readFile ./rc/fallback_term.zsh} + ''; + initExtra = '' ${readFile ./rc/opts.zsh} ${readFile ./rc/prompt.zsh} ${readFile ./rc/keybinds.zsh} - ${readFile ./rc/fallback_term.zsh} ${readFile ./rc/aliases.zsh} ${readFile ./rc/functions.zsh}