Is it possible to make alacritty starts with tmux?

Viewed 2082

I am using alacritty and tmux together. Is it possible to make tmux run everytime when I launch alacritty?

3 Answers

Yes. In the shell option, you can set the program you want to run and even pass in the arguments. For example, in your alacritty.yml file, you can set this:

shell:
  program: /usr/local/bin/tmux # <- set this to the path of your tmux installation
  args:
    - new-session
    - -A
    - -D
    - -s
    - main

Every time you start alacritty, tmux will start a new session and pass the other args.

Or go the easy route and launch your terminal this way:

alacritty -e tmux

Related