Add tmux config and replace zellij with tmux in zshrc.

Zhrc also has some light refactoring, and has added a zsh local file
which gets sourced if it exists, useful for adding local environment
variables
This commit is contained in:
Martin Larsson 2024-06-29 14:01:03 +02:00
parent 6ebb641656
commit d094fce66d
6 changed files with 186 additions and 6 deletions

View file

@ -0,0 +1,13 @@
#!/bin/zsh
desired_state=$1
current_state=$(tmux show-environment -g @resize_mode 2>/dev/null | cut -d '=' -f 2)
[ "$current_state" = "$desired_state" ] && exit 0
tmux set -g @tmux_resize_mode $desired_state
if [ "$desired_state" = "1" ]; then
tmux display-message "Resize mode ON"
else
tmux display-message "Resize mode OFF"
fi