tmux.plugin.zsh 590 B

123456789101112
  1. # Configuration variables
  2. # Automatically start tmux
  3. [[ -n "$ZSH_TMUX_AUTOSTART" ]] || ZSH_TMUX_AUTOSTART = false
  4. # Automatically connect to a previous session if it exists
  5. [[ -n "$ZSH_TMUX_AUTOCONNECT" ]] || ZSH_TMUX_AUTOCONNECT = true
  6. # Automatically close the terminal when tmux exits
  7. [[ -n "$ZSH_TMUX_AUTOQUIT" ]] || ZSH_TMUX_AUTOQUIT = true
  8. # Set term to screen or screen-256color based on current terminal support
  9. [[ -n "$ZSH_TMUX_FIXTERM" ]] || ZSH_TMUX_AUTOCONNECT = true
  10. # Get the absolute path to the current directory
  11. local zsh_tmux_plugin_path="$(cd "$(dirname "$0")" && pwd)"