title: tmux no server running on /tmp/tmux-*/default - Windows msys2 terminal
body: <p>I'm new to tmux and have been trying to get a <code>.tmux.conf</code> that suits me and build a script to setup a session. At some point I started getting this error </p>
  
  <pre><code>no server running on /tmp/tmux-1065767/default
  </code></pre>
  
  <p>This message only appears when there is no active session and I run a command like <code>tmux ls</code>.</p>
  
  <hr>
  
  <p>I have tried to <a href="https://stackoverflow.com/a/30370259">follow solutions like this one</a> but I am on a Windows 8 machine and the *nix commands aren't working and I have failed to find equivalents. The relevant section from that link being to get the PID with <code>ps</code> and use <code>kill -SIGUSR1</code> to start a server running on <code>/tmp/tmux-*/default</code>:</p>
  
  <pre><code>% ps aux | grep -w [t]mux
  root     14799  0.2  0.0  36020   488 ?        Ss   May08  51:30 tmux
  % kill -USR1 14799
  % tmux ls
  &lt;list of tmux sessions&gt;
  </code></pre>
  
  <p>If you know equivalent commands to the above for Windows 8, in a msys2 or Git Bash terminal, I would be very grateful.</p>
  
  <hr>
  
  <p>In case my <code>.tmux.conf</code> or setup script are an issue I have included them below.</p>
  
  <p>Config file:</p>
  
  <pre><code># allow names to stick
  set-option -g allow-rename off
  
  # use the lovely fish
  set-option -g default-shell /usr/bin/fish
  set -g default-command /usr/bin/fish
  
  # modify the status bar
  set -g status-bg colour233
  set -g status-fg colour40
  set-option -g status-position top
  
  # new prefix
  unbind C-b
  set-option -g prefix C-Space
  
  # don't punish slow release of control when moving windows
  bind C-n next-window
  bind C-p previous-window
  
  # alt close windows
  bind X confirm kill-window
  
  # split panes using v and s
  bind v split-window -h
  bind s split-window -v
  unbind '"'
  unbind %
  
  # reload config file
  bind r source-file ~/.tmux.conf
  
  # hopefully help tmux believe in colourful vim
  set -g default-terminal "xterm-256color"
  
  # switch panes using Alt-arrow without prefix
  bind -n M-Left select-pane -L
  bind -n M-Right select-pane -R
  bind -n M-Up select-pane -U
  bind -n M-Down select-pane -D
  
  # clear pane title
  bind ] select-pane -T ''
  
  </code></pre>
  
  <p>Setup script:</p>
  
  <pre><code>#! /bin/bash
  # For setting up BrokenFlows' default tmux work space
  
  # for checking if the session exists
  desired="dfws"
  existing=`tmux ls | grep -o $desired`
  
  if [ "$existing" == "$desired" ] # don't wind up if it's already there
  then
      tmux attach-session -t $desired
  else
      # if it wasn't there then setup as below
  
      tmux new-session -s $desired -d # name "DeFault WorkSpace" and detach
  # called from cli but affecting most recent session:
      tmux rename-window "home" 
  
      # split window 0
      tmux split-window -v -p 38 # set bottom to 38% height
      tmux split-window -h -p 60 # set right to 60% width
      tmux split-window -h -p 51 # set right to 51% width
  
      # setup commands in window 0
      tmux clock-mode -t 0.1 # time in the bottom left pane
      tmux send-keys -t 0.2 'cpu' Enter # % cpu in bottom middle pane
      tmux send-keys -t 0.3 'mem' Enter # MByte mem in bottom right pane
  
      # open to-do list in window 1
      tmux new-window -n "vim" 
      tmux send-keys -t "vim" 'vim ~/Desktop/Today.taskpaper' Enter
  
      # go to home window and pane
      tmux select-window -t 0
      tmux select-pane -t 0
  
      # name panes in window 0
      sleep 2
      tmux set pane-border-status top
      tmux set pane-border-format "#T"
      tmux select-pane -t 0 -T ""
      tmux select-pane -t 0 -T ''
      tmux select-pane -t 1 -T 'Time'
      tmux select-pane -t 2 -T '% CPU'
      tmux select-pane -t 3 -T 'MByte Memory'
  
      # attach to session now it is set up
      tmux attach-session -d
  fi
  
  </code></pre>
  
  <hr>
  
  <p>I would like to be able to get back to the default behavior where the "no server running" output is replaced by a proper response to commands such as <code>tmux ls</code>.</p>
  
  <p>I expect this requires equivalent commands to <code>ps</code> and <code>kill -SIGUSR1 [PID]</code> on Windows 8, in a msys2 or Git Bash terminal.</p>