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:
parent
1efd250317
commit
3527c8c778
8 changed files with 151 additions and 0 deletions
33
tests/modules/programs/sesh/basic-configuration.nix
Normal file
33
tests/modules/programs/sesh/basic-configuration.nix
Normal 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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
12
tests/modules/programs/sesh/basic-configuration.toml
Normal file
12
tests/modules/programs/sesh/basic-configuration.toml
Normal 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"
|
||||
1
tests/modules/programs/sesh/default.nix
Normal file
1
tests/modules/programs/sesh/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ sesh-basic-configuration = ./basic-configuration.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue