Add zellij configuration

This commit is contained in:
2023-02-27 17:29:58 -06:00
parent 0e8fa639b0
commit 7fb24af4b8
3 changed files with 337 additions and 0 deletions

17
zshrc
View File

@ -101,6 +101,23 @@ if [[ -s ~/.config/broot/launcher/bash/br ]]; then
source ~/.config/broot/launcher/bash/br
fi
# zellij
if (( $+commands[zellij] )); then
ZELLIJ_AUTO_ATTACH=true
eval "$(zellij setup --generate-auto-start zsh)"
if (( ${+ZELLIJ} )); then
zellij_chpwd_hook() {
local cwd=${PWD##*/}
local cwd=${cwd:-/}
zellij action rename-tab $cwd
}
chpwd_functions+=( zellij_chpwd_hook )
fi
fi
# Source machine-specific setup
if [[ -s ~/.zshrc.local ]]; then
source ~/.zshrc.local