Okay, let me try to figure out how to approach this. The user wants to replace Tmux with Zellij in their dotfiles setup. First, I need to look at all the files provided and see where Tmux is mentioned or configured.

Starting with `.gitignore`, there's an entry for `.config/tmux/plugins`. Since they're removing Tmux, that line should be deleted so those directories aren't ignored anymore once removed.

Next, looking into `home_root/.zshrc`, I notice several sections related to Tmux. There's a block checking if the user is in a Tmux session and automatically starting it if not. That whole conditional block needs to be removed because Zellij won't use that logic. Also, there are parts about setting up Tmux Plugin Manager (TPM) with Git clones. Those lines should go too.

The `home_config/tmux` directory contains the actual Tmux configuration files like `tmux.conf`, so those can be deleted entirely since they're no longer needed. Similarly, `.tmux.conf` in `home_root/` is another config file for Tmux and should also be removed.

In the installers folder, there's an `install-tmux-plugins` script. Since Zellij doesn't use TPM, this script isn't necessary anymore and can be deleted or replaced with a Zellij installer.

Now, adding Zellij support: I need to create a new installation script in `lk-installers/`, maybe called `install-zellij`. This script should handle installing Zellij via Cargo (Rust's package manager) since that's the common method. If Cargo isn't available, it might try using apt-get as a fallback.

I also have to ensure that any references to Tmux in other files are removed. For example, aliases or environment variables related to Tmux should be checked and eliminated if present. However, looking at the provided `.zshrc`, most of the Tmux-related code was already isolated in the sections I mentioned earlier.

Another consideration is whether there's a Zellij configuration file needed. The user might want to set up their own config, but since they didn't provide one yet, maybe just note that creating a `~/.config/zellij/config.toml` could be next step, but it's beyond the current scope unless instructed otherwise.

Finally, updating any dependencies or other scripts like `link-dotfiles` if necessary. Since Tmux configs are being removed, ensuring those aren't linked anymore is important, but since we're deleting the files themselves, that might not be needed immediately.

Putting all this together: remove all Tmux-related config files and references in `.zshrc`, delete the installer script for Tmux plugins, add a new Zellij installer, and adjust any other dependencies. The commit message should reflect replacing Tmux with Zellij.
</think>

chore: replace tmux configuration with zellij setup
This commit is contained in:
2025-03-06 09:54:06 -08:00
parent 2b6b7b3e64
commit 47f4016b73
6 changed files with 11 additions and 26 deletions

View File

@@ -11,19 +11,6 @@ if [ ! -f "${ZINIT_HOME}/zinit.zsh" ]; then
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
fi
# Download Tmux Plugin Manager
TMUX_HOME="${HOME}/.config/tmux"
# Download Tmux plugin manager
if [ ! -d "${TMUX_HOME}/plugins/tpm" ]; then
mkdir -p "${TMUX_HOME}/plugins"
git clone https://github.com/tmux-plugins/tpm $TMUX_HOME/plugins/tpm
fi
if { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then
tmux source ${TMUX_HOME}/tmux.conf
fi
#extend path
path=(~/bin $path)
path=(~/.local/bin $path)
@@ -79,8 +66,6 @@ alias tree='eza --tree'
export FZF_DEFAULT_COMMAND="fd --hidden --strip-cwd-prefix --exclude .git"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --type=d --hidden --strip-cwd-prefix --exclude .git"
_fzf_compgen_path() {
fd --hidden --exclude .git . "$1"
}
@@ -113,13 +98,4 @@ eval $(thefuck --alias fk)
zinit light Aloxaf/fzf-tab
if [[ -z "$TMUX" ]]; then
tmux has-session &> /dev/null
if [ $? -eq 1 ]; then
exec tmux new -s ssh_session
exit
else
exec tmux attach -t ssh_session
exit
fi
fi
# Removed Tmux auto-start block and related code