Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables inside layout command arguments #2653

Open
lockbox opened this issue Jul 26, 2023 · 1 comment
Open

Environment variables inside layout command arguments #2653

lockbox opened this issue Jul 26, 2023 · 1 comment

Comments

@lockbox
Copy link

lockbox commented Jul 26, 2023

Similar to #2288 / #2291, except with environment variables inside the arguments in a layout

tangentially related to #2574, but focusing on
arguments to pane commands.

eg.

layout {
  pane command "watch" {
    args "$WATCH_COMMAND"
  }
}

TLDR; being able to expand env variables allows a lot more flexibility wrt sharing layout/config files with teammates etc.

I could probably devote some time to knock out a pr in a couple weeks, but I'm a little busy atm.

@brandondrew
Copy link

This would be extremely useful. My use case is to open panes that display information about remote servers, such as

pane name="production status" size="60%" command="ssh" { args "-t" "${PROJECT_SLUG}-prod" "htop"; }

I'm trying to create a layout that can be used across a dozen or so projects. The expansion of environment variables would be a convenient way to avoid a huge amount of duplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants