1
0
Fork
You've already forked session
0
A tmux plugin for managing sessions
  • Python 66.5%
  • Nix 33.5%
2025年10月13日 21:05:00 -04:00
.envrc init 2025年10月07日 23:04:50 -04:00
.gitignore init 2025年10月07日 23:04:50 -04:00
flake.lock init 2025年10月07日 23:04:50 -04:00
flake.nix init 2025年10月07日 23:04:50 -04:00
LICENSE init 2025年10月07日 23:04:50 -04:00
package.nix include fzf in nix package 2025年10月08日 21:49:57 -04:00
README.md rename prompt method to select 2025年10月13日 21:05:00 -04:00
session.py rename prompt method to select 2025年10月13日 21:05:00 -04:00

session

A tmux plugin for managing sessions.

Usage

session can be invoked directly from the shell:

usage: session [-h] [DIR]
A tmux plugin for managing sessions.
positional arguments:
 DIR starting directory (default: ~/projects)
options:
 -h, --help show this help message and exit

Or called from tmux, by specifying a keybind in your config:

bind-key f run-shell "tmux new-window /path/to/session"

As a nix package

Run ad-hoc using nix run:

nix run git+https://codeberg.org/tdback/session

Or add permanently in a NixOS module with flakes:

environment.systemPackages = [ inputs.session.packages.${system}.default ];

Importing

The utility provides simple wrappers for fzf and tmux, and can be imported into other Python scripts:

from session import Fzf
if __name__ == "__main__":
 fzf = Fzf()
 selection = fzf.select(["one", "two", "three"])
 print(selection)

Requirements

session depends on the following external programs:

  • fzf
  • tmux