Skip to content

configuration for naming sessions after the current directory #95

Description

@gigamaax

my typical tmux workflow is to have one session per project, with the basename of the project's directory being the session name. I have a script that will do this for me, but I have often wanted it built in. with prise, you might be able to emulate this flow with prise -s $(basename $(pwd)), but that would miss sanitizing and validating the session name, and you'd either need to build an alias or type that every time.

I'd like to propose creating a new configuration option directory_as_session that would derive the session name from the current directory's basename and sanitize the name. using a configuration makes it fully opt-in and easy to ignore, without complicating the command line parsing or introducing new flags, especially if this flow would be considered that user's norm.

I have a working implementation on a local branch if you're interested in a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions