zellij
zellij copied to clipboard
How to activate a python environment on load of a layout file
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.