Add zellij configuration
This commit is contained in:
17
zshrc
17
zshrc
@ -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
|
||||
|
Reference in New Issue
Block a user