Skip to content

FR: Allow using environment variables (${SHPOOL_SESSION_NAME}) in default_dir config option #398

Description

@sdoerner

AI Policy Ack
Please read the AI policy in HACKING.md and ack that you've done so here.
Ack.
What new feature do you want?

I want to be able to use environment variables inside the default_dir setting, e.g.

default_dir = "/home/${USER}/scripts"

The main use case is to use the $SHPOOL_SESSION_NAME variable.

Why this is useful?
On my remote machine, I have a few different repositories that live under a common root (Think /home/$USER/coding/$repo). Using the local shell function approach, I can use work $repo to shpool into a re-usable session for that project. However, if that session does not exist, it currently starts at ~. I want to be able to set

default_dir = "/home/${USER}/coding/${SHPOOL_SESSION_NAME}"

in my settings so that newly-created sessions already start in the right directory.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions