From 6490aa486119457fe051b66ee5a269c787744ce8 Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck Date: Sat, 12 Oct 2024 19:06:31 +0200 Subject: [PATCH] add kitty terminal fix and sudo env preservation --- home-manager/modules/packages.nix | 3 +++ home-manager/programs/zsh.nix | 1 + 2 files changed, 4 insertions(+) diff --git a/home-manager/modules/packages.nix b/home-manager/modules/packages.nix index b447e7d..1a7eb61 100644 --- a/home-manager/modules/packages.nix +++ b/home-manager/modules/packages.nix @@ -58,6 +58,9 @@ in '') (callPackage ./../pkgs/toggl-time-grouper/package.nix { inherit python3Packages; }) (callPackage ./../pkgs/extract.nix { inherit pkgs; }) + (pkgs.writeShellScriptBin "kitty-term-fix" '' + infocmp -a xterm-kitty | ssh $1 tic -x -o \~/.terminfo /dev/stdin + '') nixpkgs-fmt ddev act diff --git a/home-manager/programs/zsh.nix b/home-manager/programs/zsh.nix index ceb8281..01e026d 100644 --- a/home-manager/programs/zsh.nix +++ b/home-manager/programs/zsh.nix @@ -16,6 +16,7 @@ reload = "source ~/.zshrc"; undo-git-reset-head = "git reset 'HEAD@{1}'"; update-local = "bash $HOME/.dotfiles/install"; + sudo = "sudo --preserve-env=PATH env"; }; initExtra = '' export PATH=~/.npm-global/bin:$PATH