save point

This commit is contained in:
kake26 2025-01-27 00:12:03 -06:00
parent 795f72db03
commit d60d417579
Signed by: kake26
GPG key ID: E8AFC43591876B4D
9 changed files with 48 additions and 1 deletions

20
modules/zellij.bash Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
config="main" # default config
export ZELLIJ_CONFIG="$config"
# Function to check if zellij is installed
is_zellij_installed() {
if ! command -v zellij &> /dev/null
then
echo "This module needs zellij to be installed."
exit
fi
}
is_zellij_installed
# check if a session is already running
if pgrep -x "zellij" > /dev/null
then
zellij attach "$config"