#compdef tm

_tm() {
  for s in $(tmux list-sessions 2>/dev/null | cut -d ':' -f 1); do
    compadd "${s}"
  done
}

_tm "$@"
