Kitty create tab with activate a conda env #8171
Replies: 1 comment 1 reply
-
I dont use conda, but assuming conda activate is meant to run in the
current shell and not create a separate shell, then what you need ot do
is add a section like
```sh
if [[ -n "$CONDA_ACTIVATE" ]]; then conda activate "$CONDA_ACTIVATE"; fi
```
to your zshrc and then in kitty do
kitten @ launch --env CONDA_ACTIVATE=aider
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kovidgoyal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using kitty launch to create a new tab, i want to activate a specific conda env, but i can not make work, can anyone help?
I have tried
kitty @ launch --type=tab zsh -c 'conda activate aider && exec zsh'
this just returns a number
kitty @ launch --type=tab zsh -c 'exec zsh && conda activate aider'
this successfully creates a new tab, but the conda env does not change.
Beta Was this translation helpful? Give feedback.
All reactions