17

Autostart tmux on Alacritty launch

 3 years ago
source link: https://pawelgrzybek.com/autostart-tmux-on-alacritty-launch/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Autostart tmux on Alacritty launch

Published: 2021.06.09 | 1 minutes read

After using Hyper for a long time, I recently tried Alacritty for the first time and I decided to switch almost instantly. This OpenGL powered terminal emulator is crazy fast, lightweight and configurable. Love it!

At the time of writing this post it doesn’t support multiple windows, although I know that the support for multiple windows in Alacritty is coming soon. No biggie for me because tmux can solve this limitation quickly. Ideally, I wanted to use this terminal multiplexer whenever I launch Alacritty. If you are after a similar solution, I have a solution that works like a charm.

# ~/.alacritty.yaml

shell:
  program: /bin/zsh
  args:
    - -l
    - -c
    - "tmux attach || tmux"

tmux running in Alacritty

If tmux session exists, this command will automatically attach to it. It will create a new session otherwise. A quick, simple tip for y’all today. Enjoy geeks!

If you liked this article, please share it on Twitter.

What'ya think?

Name:
Website (optional):
Twitter (optional):
GitHub (optional):
Comment:

👆 you can use Markdown here

Save my data for the next time I commentCopyright © 2021 Pawel Grzybek

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK