On macOS 10.12.1
tmux 2.3
When run:
tmux source-file ~/.tmux.conf
Got error:
no server running on /private/tmp/tmux-502/default
On macOS 10.12.1
tmux 2.3
When run:
tmux source-file ~/.tmux.conf
Got error:
no server running on /private/tmp/tmux-502/default
You must not run
tmux source-file ~/.tmux.conf
~/.tmux.conf
is launched automatically once on the tmux server start.If you need use other alternative.conf file, you must use '-f' option:
tmux -f alternative.conf
If you need run a source file, looked like the server must be started first, if it is not yet started:
tmux start-server \; source-file source.tmux
I was getting the same error when running a script that automatically configures tmux workspaces and then attaches them.
However, when I ran the tmux
command by itself, I got a more useful error. It told me that a few lines of my ~/.tmux.conf
file were causing errors. They're out of date, I guess.
I commented out these lines and now everything works. Maybe that'll work for you, too?
I will use Iterm2 and brew
if you installed previously tmux please uninstall it, if you use brew with brew
then install it again
and finally create a
.tmux.conf
file in your home directorytype Ctrl - d and thats all