Put into ~/.zshrc
# for correct colours in alacritty
alias t="TERM=screen-256color tmux"
# list of tmux sessions
alias tml="t ls"
# create new tmux session
alias tmc="t new -s"
# attach to the selected session
tma() {
t attach -t $(tmux ls | fzf --no-preview --prompt="select session " | awk '{split($0,a,":"); print a[1]}')
}
# kill the one selected session
tmd() {
t kill-session -t $(tmux ls | fzf --no-preview --prompt="select session " | awk '{split($0,a,":"); print a[1]}')
}