Rename t to tmux-sessionizer
This matches ThePrimeagen's script that mine is based on and that I'll probably switch to in the future. I've added to the Nix store as custom-tmux-sessionizer so it doesn't conflict with the tmux-sessionzer packages that's already in the store.
This commit is contained in:
parent
5a9353ad17
commit
930473a896
9 changed files with 51 additions and 8 deletions
nix/modules/home-manager/features/cli
32
nix/modules/home-manager/features/cli/tmux-sessionizer.nix
Normal file
32
nix/modules/home-manager/features/cli/tmux-sessionizer.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options.features.cli.tmux-sessionizer.enable = lib.mkEnableOption "Enable tmux-sessionizer";
|
||||
|
||||
config = lib.mkIf config.features.cli.tmux-sessionizer.enable {
|
||||
home.packages = with pkgs; [ custom-tmux-sessionizer ];
|
||||
|
||||
home.file.".tmux-sessionizer".source = "${
|
||||
pkgs.writeShellApplication {
|
||||
name = ".tmux-sessionizer";
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
tmux
|
||||
];
|
||||
|
||||
text = ''
|
||||
set +o nounset
|
||||
|
||||
tmux new-window -d -n scratch
|
||||
nvim
|
||||
clear
|
||||
'';
|
||||
}
|
||||
}/bin/.tmux-sessionizer";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue