Skip to content

Instantly share code, notes, and snippets.

@geeksam
Created November 12, 2012 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geeksam/4060969 to your computer and use it in GitHub Desktop.
Save geeksam/4060969 to your computer and use it in GitHub Desktop.
tmux barfs when sourcing config file with bad command

Works

~/.tmux.conf:

bind z send-keys "say ack" C-m

Launches, but prints error

~/.tmux.conf:

bind z send-keys "say ack" C-m
# send-keys "say ack" C-m

Error printed:

~/.tmux.conf: 2: can't establish current session

Works

~/.tmux.conf:

bind z send-keys "say ack" C-m
source-file ~/.tmux.conf.local

~/.tmux.conf.local: (EMPTY FILE)

Dies with no output

~/.tmux.conf:

bind z send-keys "say ack" C-m
source-file ~/.tmux.conf.local

~/.tmux.conf.local:

send-keys "say ack" C-m

Running

tmux -vvvvv -f ~/.tmux.conf
produces no output. (I omitted the -S and -L switches because I don't normally use them.)

server started, pid 2173
socket path /private/var/folders/vm/dwyylzq52k51sfys022qkttw0000gp/T/tmux-502/default
new client 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment