From 6648dbc774d7371568a927ea2e95c397e91241f9 Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 3 May 2025 16:57:58 +0200 Subject: [PATCH] addet zellij command --- .zshrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.zshrc b/.zshrc index cdbbc7a..2d10aa9 100644 --- a/.zshrc +++ b/.zshrc @@ -635,6 +635,23 @@ __alias__() { alias ts="tmux source $HOME/.tmux.conf" fi + + # Zellij session manager + if command_exists zellij; then + za() { + if zellij list-sessions 2>/dev/null | grep -q .; then + echo "-- Zellij session active! | Connecting to existing session --" + sleep 0.3 + zellij attach + else + echo "-- No Zellij session found! | Creating one --" + sleep 0.3 + zellij + fi + } + + # alias zs="zellij setup --dump-config > $HOME/.config/zellij/config.yaml" + fi } _coding_() {