How do I combine two commands two formatting commands?
I want to set the name of a window to the first 3 letters of my current directory.
Example: /some/dir/project
Goal: "proj"
In tmux I can realize this with:
set-option -g automatic-rename on
set-option -g automatic-rename-format 'string'
Where I can set string to either:
- #{=3:pane_current_path} -> first five letters of path -> "/so"
- #{b:pane_current_path} -> current dir -> "project"
However, if I attempt to combine the two I just get an empty string. Did anyone else get this to work?
Cheers,
Niklas