Rename t and replace tmux-sessionizer
All checks were successful
/ check (push) Successful in 53s

This commit is contained in:
Oliver Davies 2025-09-03 08:10:13 +01:00
parent b44bbef3e2
commit 21d9ca8737
8 changed files with 4 additions and 112 deletions

View file

@ -1,30 +0,0 @@
{
flake.modules.homeManager.base =
{ config, pkgs, ... }:
{
home.file.".tmux-sessionizer".source = "${
pkgs.writeShellApplication {
name = ".tmux-sessionizer";
runtimeInputs = with pkgs; [
tmux
];
text = ''
set +o errexit
set +o nounset
if [[ "$PWD" == "${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/os" || "$PWD" == "${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/personal" || "$PWD" == "${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/work" ]]; then
clear
return
fi
tmux new-window -d -n scratch
nvim .
clear
'';
}
}/bin/.tmux-sessionizer";
};
}