Name the current window after the base directory name

This commit is contained in:
David Heinemeier Hansson committed 2026-02-23 12:00:53 +01:00
1 parent 3e952ca745
commit 0d50a01a41
1 file changed
+3
+3
View File
@@ -134,6 +134,9 @@ tml() {
local editor_pane ai_pane
local ai="$1"
# Name the current window after the base directory name
tmux rename-window "$(basename "$current_dir")"
# Get current pane ID (will become editor pane after splits)
editor_pane=$(tmux display-message -p '#{pane_id}')