.tmux: run `tmux source ~/.tmux.conf` errors, help me,please

env:

6A898423-1BD1-44E0-B4CF-C8237C775F49

reload conf:

tmux source ~/.tmux.conf:

bad value: on
bad value: on
usage: send-prefix [-2] [-t target-pane]
bad value: on
unknown command: clear-history
bad value: on
bad value: off
unknown command: new-session
usage: split-window [-bdhvP] [-c start-directory] [-F format] [-p percentage|-l size] [-t target-pane] [command]
usage: split-window [-bdhvP] [-c start-directory] [-F format] [-p percentage|-l size] [-t target-pane] [command]
unknown key: n
unknown key: p
' returned 127copy-mode-vi v send -X begin-selection 2> /dev/null || true
' returned 127copy-mode-vi C-v send -X rectangle-toggle 2> /dev/null || true
' returned 127copy-mode-vi Escape send -X cancel 2> /dev/null || true
' returned 127copy-mode-vi y send -X copy-selection-and-cancel 2> /dev/null || true
' returned 127copy-mode-vi H send -X start-of-line 2> /dev/null || true
' returned 127copy-mode-vi L send -X end-of-line 2> /dev/null || true
' returned 2.tmux.conf | sh -s _apply_configuration
: No such file or directoryal

in session:

9A69FB1B-2865-41FD-98BE-7A72FAE8A34C

how to deal it???

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Alright,

I should have guessed it earlier. The problem is that for some reason your git is configured to write files with CRLF (Windows) line endings.

image

Fix your Git configuration to make sure your /.tmux.conf and ~/.tmux.conf.local copies have LF (Unix) line endings.

Glad it’s solved. Enjoy!