hashrocket / dotmatrix

Hashrocket Dot Files
363 stars 98 forks source link

hr mux config file #78

Closed BrandonShega closed 6 years ago

BrandonShega commented 6 years ago

Hi guys,

Love Dotmatrix, I forked it and created a new version of my own but still use all the base you created. I have a question I use mux to start tmux but I was reading through the hr mux command and saw this comment:

The above will create a tmux session named after the directory you're in and create a few useful default windows with a sensible layout.

Although I seem to always just get a single window layout with the title "code".

I see there are some lines around

mux_file="$directory/.mux"
[ -f $mux_file ] || mux_file="$HOME/.mux"
[ -f $mux_file ] || mux_file="$_HR_SHARE/mux-init"

and name=$name source $mux_file

Could this be why? Is this something that I need to create or that maybe should be added to dotmatrix?

(I don't have a .mux file in my home directory)

avogel3 commented 6 years ago

Hey Brandon, thanks for the feedback.

Running mux on a directory should open a tmux session with the title of the directory and 2 windows: code and server. In addition, the code window should open a vertical-split with vim.

You don't need to create .mux file unless you want to customize the behavior of tmux globally or inside a project. You can check out the default mux configuration here.

Let me know if that helps! 👍 😃

BrandonShega commented 6 years ago

Oh awesome, I never saw the default implementation. I actually ended up writing my own since I have a certain workflow that I go with and it's working great!

Thanks again.