.tmux: run `tmux source ~/.tmux.conf` errors, help me,please
env:
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:
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
- added .gitattributes to make sure .tmux.conf and .tmux.conf.local have LF line endings, resolves #235 — committed to gpakosz/.tmux by gpakosz 5 years ago
- added .gitattributes to make sure .tmux.conf and .tmux.conf.local have LF line endings, resolves #235 — committed to nks5295/.tmux by gpakosz 5 years ago
- added .gitattributes to make sure .tmux.conf and .tmux.conf.local have LF line endings, resolves #235 — committed to paddyroddy/tmux by gpakosz 5 years ago
- added .gitattributes to make sure .tmux.conf and .tmux.conf.local have LF line endings, resolves #235 — committed to alipiry/.tmux by gpakosz 5 years ago
- added .gitattributes to make sure .tmux.conf and .tmux.conf.local have LF line endings, resolves #235 — committed to wzdiyb/.tmux by gpakosz 5 years ago
- added .gitattributes to make sure .tmux.conf and .tmux.conf.local have LF line endings, resolves #235 — committed to psjay/.tmux by gpakosz 5 years ago
- added .gitattributes to make sure .tmux.conf and .tmux.conf.local have LF line endings, resolves #235 — committed to cgxxv/tmuxc by gpakosz 5 years ago
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.
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!