1
0
Fork 0
mirror of synced 2024-11-18 07:25:34 -05:00
Commit graph

299 commits

Author SHA1 Message Date
Gregory Pakosz
56e2c8d133 worked around tmux 3.5 not running run-shell commands with /bin/sh anymore (2), fixes #479
added back echo calls
2024-10-12 08:43:46 +02:00
Gregory Pakosz
9c3dc9a77e removed hard requirement on Perl's MTime::HiRes module which was only required for timestamping TPM logs, resolves #760 2024-10-11 18:31:20 +02:00
Gregory Pakosz
e13852928f worked around termux's readlink returning /apex/com.android.runtime/bin/linker64 when reading /proc/<pid>/exe (2) 2024-10-11 18:31:20 +02:00
Gregory Pakosz
bd171fabc3 worked around termux's readlink returning /apex/com.android.runtime/bin/linker64 when reading /proc/<pid>/exe, resolves #765
see also termux-play-store/termux-issues#149
2024-10-08 11:16:53 +02:00
Gregory Pakosz
2c9ef1c51b worked around tmux 3.5 not running run-shell commands with /bin/sh anymore, fixes #761
see also tmux/tmux#4143
note this is fixed in tmux 3.5a
2024-10-05 22:16:36 +02:00
Gregory Pakosz
5f1047550b fixed <prefix>+e not working when EDITOR is not defined in sh (2), fixes #755 2024-08-18 21:58:37 +02:00
Gregory Pakosz
49e1bdfa93 added safety nets to TMUX_PROGRAM introspection in case readlink or lsof return broken values (2) 2024-08-13 10:01:24 +02:00
Gregory Pakosz
9cf49731cd made perl's Time::HiRes a strong requirement (2) 2024-05-20 09:33:01 +02:00
Gregory Pakosz
cd3744965a introduced tmux_conf_urlscan_options to configure urlscan invocation, resolves #745 2024-05-20 09:33:01 +02:00
Gregory Pakosz
dc88d389a2 pass -c ":set syntax=tmux" when opening $EDITOR with <prefix>+e (2), fixes #744 2024-05-19 11:02:39 +02:00
Gregory Pakosz
8e3b90c6c8 made perl's Time::HiRes a strong requirement, resolves #739 2024-05-01 10:27:48 +02:00
Gregory Pakosz
03c9f40e6b added safety nets to TMUX_PROGRAM introspection in case readlink or lsof return broken values, resolves #737 2024-05-01 10:21:21 +02:00
Gregory Pakosz
cb13ee2cdd use #[inherit] when replacing #{paring}, #{prefix}, #{mouse} and #{synchronized} variables, like for #{root} 2024-04-01 10:04:01 +02:00
Gregory Pakosz
a795f9ec51 introduced tmux_conf_new_session_retain_current_path (2)
tmux_conf_new_session_retain_current_path should be false by default
2024-03-18 17:25:13 +01:00
Gregory Pakosz
135c89357c fixed #{battery_bar} auto width (3), fixes #726 2024-03-03 14:06:12 +01:00
Gregory Pakosz
8b56f68b09 fixed triplet form battery palette, fixes #724
see also tmux/tmux#3867
2024-03-03 14:00:03 +01:00
Gregory Pakosz
69a0bedc36 tmux_conf_preserve_stock_bindings, resolves #553 2024-02-17 14:57:52 +01:00
Gregory Pakosz
ee922631b6 use wl-copy only when XDG_SESSION_TYPE is set to 'wayland', fixes #719 2024-02-12 21:38:53 +01:00
Gregory Pakosz
b892bc155b introduced tmux_conf_new_session_retain_current_path, resolves #670 2024-02-09 10:13:28 +01:00
Gregory Pakosz
48d4cec23e made _pane_info() aware of the 'sss_ssh_knownhostsproxy' proxy command, fixes #718 2024-02-07 10:39:55 +01:00
Gregory Pakosz
34fe183aa3 do not use sysctl -q as Nix may deploy of a version of sysctl that doesn't support this option, fixes #716 2024-02-05 19:30:11 +01:00
Gregory Pakosz
fc4e3bc37b launch tpm early if it's already present on the filesystem, resolves #713 2024-01-31 14:28:25 +01:00
Gregory Pakosz
c318d0834f fixed _apply_bindings() not supporting
- copy-end-of-line
  - copy-end-of-line-and-cancel
  - copy-pipe-no-clear
  - copy-selection-no-clear

fixes #666
2024-01-25 11:41:19 +01:00
Gregory Pakosz
123ad5c109 fixed #{battery_bar} auto width (2), fixes #712 2024-01-22 11:41:31 +01:00
Gregory Pakosz
eca5fb621b removed support for tmux < 2.6, resolves #698 2024-01-21 21:10:01 +01:00
Gregory Pakosz
7e00233465 fixed #{battery_bar} auto width, also resolves #447 2024-01-21 16:03:18 +01:00
Gregory Pakosz
1469d465f8 added support for defining TPM plugins with 'set -g @tpm_plugins', resolves #706 2024-01-17 19:22:00 +01:00
Gregory Pakosz
dd9502a09a added support for urlscan, preferred over urlview which is now unmaintained, resolves #695 2023-12-21 19:45:15 +01:00
Gregory Pakosz
5354501a5b made _pane_info() aware of teleport's 'tsh proxy ssh' command, fixes #690 2023-12-18 08:59:56 +01:00
Gregory Pakosz
1b88bf2127 fixed username detection on OpenBSD 2023-12-08 16:12:31 +01:00
Gregory Pakosz
78c8d0483d added FreeBSD support to _battery_info(), resolves #680 2023-12-05 17:32:26 +01:00
Gregory Pakosz
42adc354b6 pass -c ":set syntax=tmux" when opening $EDITOR with <prefix>+e, resolves #667 2023-11-28 23:28:12 +01:00
Gregory Pakosz
b787748753 fixed <prefix>+e not working when EDITOR is not defined in sh, fixes #679 2023-11-27 17:58:10 +01:00
Gregory Pakosz
fd1bbb5614 fixed TMUX_PROGRAM introspection on FreeBSD, fixes #639 2023-04-15 16:11:39 +02:00
sylph1o
2a6145d74f we don't rely on TPM to scan configuration files anymore...
as such we need to populate the @tpm_plugins outside of the internet connectivity
check , otherwise TPM loads no plugin at all

fixes #637
2023-04-08 14:10:11 +02:00
Gregory Pakosz
7706ab724f when lsof cannot be found in PATH, search in /usr/local/bin, /usr/bin, /bin, /usr/sbin and /sbin
this helps using tmux as a default shell on macOS where PATH is initially set to /usr/bin:/bin

resolves #587
2023-04-01 17:28:57 +02:00
Gregory Pakosz
55d47e9c15 added support for connecting to the same host when creating a new window from a pane running an SSH session, resolves #632
see tmux_conf_new_window_reconnect_ssh

also fixed toggling tmux_conf_xxx_reconnect_ssh back and forth
2023-04-01 16:54:17 +02:00
Gregory Pakosz
79430acd85 added (back) window bell and window zoomed flags, resolves #628 2023-03-31 20:39:24 +02:00
Gregory Pakosz
a989554fbc added support for configuration files in the following locations: (3), fixes #631
- ~/.tmux.conf and ~/.tmux.conf.local
- $XDG_CONFIG_HOME/tmux/tmux.conf and $XDG_CONFIG_HOME/tmux/tmux.conf.local
- ~/.config/tmux/tmux.conf and ~/.config/tmux/tmux.conf.local

Oh my tmux! now relies on setting @tpm_plugins so as to not impose its opinions
on TPM and its way of discovering sourced tmux configuration tiles

do not unset '@tpm_plugins' once initial setup is done as it prevents the update
plugins binding from working
2023-03-06 14:51:14 +01:00
Gregory Pakosz
96b36d4bbe added support for configuration files in the following locations: (2), fixes #630
- ~/.tmux.conf and ~/.tmux.conf.local
- $XDG_CONFIG_HOME/tmux/tmux.conf and $XDG_CONFIG_HOME/tmux/tmux.conf.local
- ~/.config/tmux/tmux.conf and ~/.config/tmux/tmux.conf.local

fixed TMUX_PLUGIN_MANAGER_PATH when installed in ~

also made TMUX_PLUGIN_MANAGER_PATH available in the environment of the first created pane
2023-03-06 10:06:51 +01:00
Gregory Pakosz
5f54ee9852 implemented poor man's pkill (2)
disabled SC2009

SC2009 (info): Consider using pgrep instead of grepping ps output
2023-03-05 17:26:21 +01:00
Gregory Pakosz
0f6b28e1e9 fixed SC2268 violation
SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose
2023-03-05 17:26:21 +01:00
Gregory Pakosz
1f5a064820 updated _username() in when the ssh client doesn't support %r in ProxyCommand (2)
disabled SC2086 violation

SC2086 (info): Double quote to prevent globbing and word splitting
2023-03-05 17:26:21 +01:00
Gregory Pakosz
3994ce38d8 fixed shellcheck SC2059 violation
SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo"
2023-03-05 17:26:21 +01:00
Gregory Pakosz
adf2e0caec fixed shellcheck SC2015 violation
SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true
2023-03-05 17:26:21 +01:00
Gregory Pakosz
28d6670bb9 reworked pane / tty introspection (3)
fixed SC2154 violation

SC2154 (warning): pane_id is referenced but not assigned
2023-03-05 17:26:21 +01:00
Gregory Pakosz
f930dbe12a updated _maximize_pane() that stopped working with tmux 3.2 (2)
fixed SC2014 violation

SC2034 (warning): current_pane_height appears unused. Verify use (or export if used externally)
2023-03-05 17:26:21 +01:00
Gregory Pakosz
f27641c846 turn off history substitution in case it's been enabled (3)
disabled SC3041 violation and fixed SC2015 violation

SC3041 (warning): In POSIX sh, set flag -H is undefined

SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true
2023-03-05 17:26:21 +01:00
Gregory Pakosz
b17d57f325 added support for configuration files in the following locations:
- ~/.tmux.conf and ~/.tmux.conf.local
- $XDG_CONFIG_HOME/tmux/tmux.conf and $XDG_CONFIG_HOME/tmux/tmux.conf.local
- ~/.config/tmux/tmux.conf and ~/.config/tmux/tmux.conf.local

location of configuration files is determined by the following environment variables:
- TMUX_CONF
- TMUX_CONF_LOCAL

the TMUX_PROGRAM environment variable contains the path to the tmux executable

resolves #200, resolves #221, resolves #439, resolves #586, resolves #624
2023-03-05 17:26:21 +01:00
Gregory Pakosz
c5f598ea86 added tmux_conf_theme that controls whether theming is enabled or disabled (2), fixes #629 2023-03-05 17:26:21 +01:00