Commit graph

38 commits

Author SHA1 Message Date
Shahin Sorkh
55682e3692
feat(tmux): set session name with ZSH_TMUX_DEFAULT_SESSION_NAME (#9063) 2021-11-08 15:32:09 +01:00
Marc Cornellà
77aa1795d2 Revert "fix: Update tmux plugin to use modern terminfo. (#8582)"
This reverts commit 69caf98cf7.
2020-02-04 19:46:08 +01:00
Dennis Rausch
69caf98cf7
fix: Update tmux plugin to use modern terminfo. (#8582)
* fix: Update tmux plugin to use modern terminfo.

* doc: Update documentation for tmux plugin.
2020-01-31 01:32:53 +01:00
Peter Mosmans
be73666f34 tmux: add support for forced unicode support (#5166)
When ZSH_TMUX_UNICODE=true then tmux is informed that UTF-8 is supported.

Closes #5166
2019-11-23 22:12:36 +01:00
Paulo Diovani Gonçalves
0ad988c598 tmux: export ZSH_TMUX_CONFIG again to provide to tmux (#8390) 2019-11-15 16:47:11 +01:00
Yuan-Hao Chen
24d83d1e8c tmux: fix bad tmux config syntax and logical expression error in 86b39cf (#8374) 2019-11-14 13:34:02 +01:00
StelFux
86b39cfa0a tmux: allow to define a custom configuration path (#7606) 2019-11-08 21:44:44 +01:00
Marc Cornellà
e780209c33
tmux: use $terminfo to avoid echoti errors
See https://github.com/robbyrussell/oh-my-zsh/issues/7407#issuecomment-441665143
2018-11-26 19:57:52 +01:00
Marc Cornellà
b1424e2893
tmux: use echoti instead of tput for FreeBSD compatibility
Fixes #7407

FreeBSD's tput needs termcap codes instead of terminfo capnames, so using `tput colors`
has the wrong effect. See #7407
2018-11-16 19:40:06 +01:00
15cm
ff6b4c835b tmux: do not auto-load tmux inside of Emacs/Vim
When Emacs and Vim are launched from outside of an interactive shell,
$TMUX and $STY are not set; check for Emacs and Vim environment
variables instead.
2018-08-18 21:00:43 +02:00
Marc Cornellà
60db5cdb58
tmux: fix invalid syntax on old zsh versions
First reported on f584de5930 (r29984052)
2018-08-09 17:19:40 +02:00
Marc Cornellà
76d3eedf7f tmux: fix regression after f584de5
Fixes #7041
2018-08-07 00:40:18 +02:00
Marc Cornellà
f584de5930 tmux: refactor and simplify tmux function logic 2018-08-03 22:13:48 +02:00
Andrew Janke
19716a8e3d tmux: refactor
- Consolidates the switch-adding logic for readability.
- Replaces "[[ ... ]] && ..." with "if [[ ... ]]; then ..." in some
  cases to avoid a spurious nonzero exit status from _zsh_tmux_plugin_run.
- Puts error message on stderr instead of stdout
2018-08-03 22:09:06 +02:00
Andrew Janke
f33691fbb6 tmux: detabify source code
Also changes the tmux detection test to do an early exit if tmux is absent,
to reduce the indentation level of the main body of code.
2018-08-03 21:21:42 +02:00
Daniel Grove
906a7731af Add tmux attach -d alias (#5285) 2016-08-12 20:50:09 -07:00
Peter Butkovic
eb0549750f additional tmux aliases 2014-09-16 10:35:43 +02:00
Kevin Traver
d01ca03635 Add tmux aliases 2013-10-23 23:17:43 -07:00
fff
849c80b02d fixed typo in tmux plugin 2013-07-15 09:25:18 +08:00
Matei Trusca
9cec52c449 fixed typo in tmux plugin 2013-07-02 11:29:25 +03:00
Andrew Schwartzmeyer
55f7990607 Not loading home tmux confs when iTerm2 tmux integration is enabled 2013-06-22 18:20:11 -07:00
Andrew Schwartzmeyer
bc65443734 Adding support for iTerm2 tmux integration via option '-CC' 2013-06-22 18:20:11 -07:00
Josh Matthews
19ae0b576c Exporting path to fixed config as a global variable.
This is done to fix compatibility with antigen.
To keep with convention, the variable has been renamed to be in all caps.
2013-03-26 19:42:05 +00:00
Josh Matthews
a91872df35 Prefixing tmux wrapper function with '_'. 2013-03-26 19:41:34 +00:00
Josh Matthews
f0a920df5a Checking to make sure tmux is actually installed before running plugin.
If it is not found an error message is printed.
2013-02-27 10:21:19 -05:00
Josh Matthews
4e8681c6e1 Adding options to choose tmux TERM for 256 and non-256 color terminals.
This may be needed on systems that don't have the proper terminfo for
screen and/or screen-256color. Otherwise the defaults of screen and
screen-256color should be fine.
2013-02-26 23:37:53 -05:00
Josh Matthews
86c9b32031 Adding compdef to maintain tmux completions. 2013-02-26 22:57:37 -05:00
Josh Matthews
56c46c4ed8 Fixing typo in alias. 2013-02-26 22:55:18 -05:00
Josh Matthews
691630a895 Adding option to prevent autostarting tmux more than once in the same session. 2013-02-26 22:29:26 -05:00
Josh Matthews
f096644c75 Checking if already in tmux before autostarting in tmux in tmux plugin. 2013-02-26 22:29:26 -05:00
Josh Matthews
43c50f03e3 Checking environment instead of local variable for fixing term in tmux plugin. 2013-02-26 22:29:26 -05:00
Josh Matthews
7b15627851 Fixing typos, logic, and gremlins in tmux plugin. 2013-02-26 22:29:26 -05:00
Josh Matthews
45a4db33f8 Enabling autostart of tmux in tmux plugin. 2013-02-26 22:29:26 -05:00
Josh Matthews
0cf871d512 Adding comments to tmux plugin. 2013-02-26 22:29:26 -05:00
Josh Matthews
778ae57772 Tmux plugin now just runs tmux if any extra args are given. 2013-02-26 22:29:26 -05:00
Josh Matthews
3aef6793c2 Now checking for 256 color terminal in tmux plugin. 2013-02-26 22:29:26 -05:00
Josh Matthews
26ee66f179 Adding main function and alias to tmux plugin. 2013-02-26 22:29:26 -05:00
Josh Matthews
b979400cff Starting tmux plugin with basic config variables. 2013-02-26 22:29:26 -05:00