0

I have such tmux config related to the window naming

set -g window-status-format '#[fg=colour235,bg=colour252,bold] #I #(pwd="#{pane_current_path}"; echo ${pwd####*/}) #W '

set -g window-status-current-format '#[fg=colour234,bg=colour39]⮀#[fg=black,bg=colour39,noreverse,bold] #{?window_zoomed_flag,#[fg=colour228],} #I #(pwd="#{pane_current_path}"; echo ${pwd####*/}) #W #[fg=colour39,bg=colour234,nobold]⮀'

Here's a screenshot of this: enter image description here

The auto naming window works great for me until I want to change it.

I want to have an ability to fully rename the window name, currently I can do only this: enter image description here

I don't need the folder name in my desired window name

1 Answer 1

1

Use this instead

set -g window-status-format '#[fg=colour235,bg=colour252,bold] #I #W '
set -g window-status-current-format '#[fg=colour234,bg=colour39]⮀#[fg=black,bg=colour39,noreverse,bold] #{?window_zoomed_flag,#[fg=colour228],} #I #W #[fg=colour39,bg=colour234,nobold]⮀'

I deleted the part related to folder name

#(pwd="#{pane_current_path}"; echo ${pwd####*/})

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.