you are viewing a single comment's thread
view the rest of the comments

zinit and tmux

Zinit is a simple zsh configuration utility, it is good enough where I can drop my ~/.zshrc onto my server, not only will it download zinit, but it'll go on to setup all my zsh plugins.

And I really like using this command to connect to servers: ssh @ -t tmux new -As0

What that command does is connect via ssh, but instead of going directly towards bash, sh, fish, or zsh it just goes to tmux and uses your default shell. It also checks if there is a session 0 currently open and connects to it. If it doesn't exist already it connects to it.

Using tmux on a server actually has a big benefit. Let's say you are running a really long command on it. We'll typically that command would stop when you kill the ssh session. With a terminal multiplexor, that command will continue running after the ssh session closes and you can simply reconnect to monitor the status.

  • source