sesh: add module (#5789)

Sesh is a CLI that helps you create and manage tmux sessions quickly and easily
using zoxide. See https://github.com/joshmedeski/sesh for more.
This commit is contained in:
Michael 2025-03-29 23:32:11 +09:00 committed by GitHub
parent 1efd250317
commit 3527c8c778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 151 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ pkgs, ... }:
{
config = {
programs.fzf.tmux.enableShellIntegration = true;
programs.sesh = {
enable = true;
package = pkgs.writeScriptBin "dummy-polybar" "";
settings = {
default_session.startup_command = "nvim -c ':Telescope find_files'";
session = [
{
name = "Downloads 📥";
path = "~/Downloads";
startup_command = "ls";
}
{
name = "tmux config";
path = "~/c/dotfiles/.config/tmux";
startup_command = "nvim tmux.conf";
}
];
};
};
nmt.script = ''
assertFileExists home-files/.config/sesh/sesh.toml
assertFileContent home-files/.config/sesh/sesh.toml \
${./basic-configuration.toml}
'';
};
}

View file

@ -0,0 +1,12 @@
[default_session]
startup_command = "nvim -c ':Telescope find_files'"
[[session]]
name = "Downloads 📥"
path = "~/Downloads"
startup_command = "ls"
[[session]]
name = "tmux config"
path = "~/c/dotfiles/.config/tmux"
startup_command = "nvim tmux.conf"

View file

@ -0,0 +1 @@
{ sesh-basic-configuration = ./basic-configuration.nix; }