can't get ghostty to open tmux on launch
Hey just installed ghostty and I freakin' love it BUT i can't get it to launch tmux on launch. from my understanding if I have tmux installed threw brew... which I did. but for some reason it doesn't auto launch. i've tried looking up the config add in to make it work but I can't find anything... any help would be great
7 Replies
add this line in the config:
thanks for the response! i get an error saying that terminal failed to launch the command... do i need to give extra permissions? if so how..... the thing that's confusing is that that launching directly in terminal works, but the autolaunch doesn't
is the error i receive
Solution
try running the exact executable of tmux:
command=/usr/bin/tmux
not sure if the location is similar for macOS, I am on Linux.
i'll look it up but the error just looks like it needs the directory
just for anyone who followed this, don't just use
command=tmux
to open tmux on ghostty startup
it will create a new session everytime you open ghostty
even if there is a session running already
use a script like this and run this on startup:
I would suggest to use zsh tmux plugin it takes complete care of tmux starting managing sessions and everything using basic configuration. If you want to see how I use it you can check my dot files
GitHub
ohmyzsh/plugins/tmux/README.md at master · ohmyzsh/ohmyzsh
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, pyth...
GitHub
GitHub - mattsivak/dotfiles: All of my configs, that i use with stow.
All of my configs, that i use with stow. Contribute to mattsivak/dotfiles development by creating an account on GitHub.