Zellij
install
sudo pacman -S zellij
Personal do
vim ~/.zshrc
export ZELLIJ_CONFIG_DIR="$HOME/.config/zellij"
export ZELLIJ_CONFIG_FILE="$HOME/.config/zellij/user.kdl"
zellij_tab_name_update() {
if [[ -n $ZELLIJ ]]; then
local current_dir=$PWD
if [[ $current_dir == $HOME ]]; then
current_dir="~"
else
current_dir=${current_dir##*/}
fi
command nohup zellij action rename-tab $current_dir >/dev/null 2>&1
fi
}
zellij_tab_name_update
chpwd_functions+=(zellij_tab_name_update)
alias zw='zellij --layout=swap'
reference
- Configuration
- Configuration - Options
- Configuration - Tokyo Night Light
- Layouts
- default.kdl
- Does zellij support changing tab's name according to pane file system path automatically?