zsh: Add tmux stuff

This commit is contained in:
caem 2025-02-20 23:11:48 +01:00
parent 357f2f48af
commit 79bb2f7c9c
Signed by: caem
GPG key ID: 69A830D03203405F
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/usr/bin/env zsh
zstyle ':completion:*:git-checkout:*' sort false
zstyle ':completion:*:descriptions' format '[%d]'
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' menu no
zstyle ':fzf-tab:*' fzf-flags --color 16 --bind=tab:accept
[ -n "$TMUX" ] && zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup

View file

@ -0,0 +1,5 @@
#!/usr/bin/env zsh
if [ -z "$TMUX" ] && [ -n "$PS1" ]; then
tmux attach
fi