What I want to do is really simple, but I can't seem to find a straightforward answer.
I found this question and this question, but they're not quite what I need - I'm not running multiple sessions or windows or anything crazy like that - I just want tmux to execute a command (likely a bash script) within itself, after it opens.
So basically I type "tmux", a session opens, and within the session tmux automatically executes "hello_world.sh", or something similar.
Does anyone know how to do this? The .tmux.conf file doesn't seem to take "send-keys", but I might be using it wrong.
Thank you all in advance.
Edit: Answered my own question thanks to JohnKiller. I didn't think about the fact that /root/.bashrc is run on log in, AND when TMUX opens. I added an if statement to it, answer below.