zellij icon indicating copy to clipboard operation
zellij copied to clipboard

How to activate a python environment on load of a layout file

Open satyamjay-iitd opened this issue 9 months ago • 3 comments

I want to do something very simple(or so I thought). Create two tabs, one with helix opened, and other with just a shell.

I wrote the following layout file.

layout {
    tab name="editor" {
       pane command="zsh" {
            args "-c" "source venv/bin/activate && hx"
            cwd "~/dev/calcite-qp/python"
        }
    }

    tab name="shell" {
        pane command="zsh" {
            args "-c" "source venv/bin/activate"
            cwd "~/dev/calcite-qp/python"
        }
    }
}

The editor opens fine, but the shell is not working. Kindly point in the right direction.

satyamjay-iitd avatar May 20 '24 10:05 satyamjay-iitd