feat(tmux): inline tab-name format, remove script
Replace external tab-name.sh with a tmux format string that shows pane_current_path for shell processes and pane_current_command otherwise, truncated to 15 chars. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -94,4 +94,4 @@ set -g lock-after-time 180
|
||||
set -g lock-command 'eval $(grep active_total ${TMPDIR:-/tmp}/.tmux_heartbeat 2>/dev/null); ~/.tmux/donut ${active_total:-0}'
|
||||
set -g automatic-rename on
|
||||
set -g allow-rename off
|
||||
set -g automatic-rename-format '#(~/.tmux/tab-name.sh "#{pane_current_command}" "#{b:pane_current_path}")'
|
||||
set -g automatic-rename-format '#{=/15/…:#{?#{||:#{m:zsh,#{pane_current_command}},#{||:#{m:bash,#{pane_current_command}},#{||:#{m:fish,#{pane_current_command}},#{m:sh,#{pane_current_command}}}}},#{b:pane_current_path},#{pane_current_command}}}'
|
||||
|
||||
Reference in New Issue
Block a user