From ccb65b1f87f228e9f179a5de083a5b193cef306a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patr=C3=ADcia=20Villela=20Oca=C3=B1a=20Bruno?= Date: Thu, 13 Nov 2025 03:50:14 -0300 Subject: [PATCH] [277] - Remodeling the integrations page --- docs/src/integration.md | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/docs/src/integration.md b/docs/src/integration.md index c716814d..5c429f59 100644 --- a/docs/src/integration.md +++ b/docs/src/integration.md @@ -13,46 +13,26 @@ set to `0` inside a zellij session. Arbitrary key value pairs can be set through configuration, or layouts. Note that `ZELLIJ_SESSION_NAME` will not be updated for existing terminal panes when renaming a session (but will for new panes). - Here are some limited examples to help get you started: ## Autostart on shell creation Autostart a new zellij shell, if not already inside one. -Shell dependent, fish: -``` -if set -q ZELLIJ -else - zellij -end -``` -other ways, zellij provides a pre-defined auto start scripts. +Due to its shell dependency, zellij provides a generation tool: -### bash ``` -echo 'eval "$(zellij setup --generate-auto-start bash)"' >> ~/.bashrc +echo 'eval "$(zellij setup --generate-auto-start )"' >> ``` +Replace `` for your shell (`bash` and `zsh` supported) and ` for its configuration file (`~/.bashrc` or `~/.zshrc`, respectively). -### zsh -``` -echo 'eval "$(zellij setup --generate-auto-start zsh)"' >> ~/.zshrc +For fish, we actually recommend you use it like this ``` - -### fish - -⚠️ Depending on the version of the `fish` shell, the setting may not work. In that case, check out this [issue](https://github.com/zellij-org/zellij/issues/1534). - -Add - -```fish if status is-interactive ... eval (zellij setup --generate-auto-start fish | string collect) end ``` - -to `$HOME/.config/fish/config.fish` file. - +⚠️ Depending on the version of the `fish` shell, the setting may not work. In that case, check out this [issue](https://github.com/zellij-org/zellij/issues/1534). The following environment variables can also be used in the provided script.