![tmux 창의 이름을 완전히 바꾸는 방법](https://rvso.com/image/1568307/tmux%20%EC%B0%BD%EC%9D%98%20%EC%9D%B4%EB%A6%84%EC%9D%84%20%EC%99%84%EC%A0%84%ED%9E%88%20%EB%B0%94%EA%BE%B8%EB%8A%94%20%EB%B0%A9%EB%B2%95.png)
창 이름 지정과 관련된 tmux 구성이 있습니다.
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]⮀'
자동 이름 지정 창은 내가 변경하기 전까지는 유용하게 작동합니다.
창 이름을 완전히 바꿀 수 있는 기능을 갖고 싶습니다. 현재는 다음만 할 수 있습니다.
원하는 창 이름에 폴더 이름이 필요하지 않습니다
답변1
대신 이것을 사용하십시오
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]⮀'
폴더명 관련 부분을 삭제했습니다
#(pwd="#{pane_current_path}"; echo ${pwd####*/})