tmux 창의 이름을 완전히 바꾸는 방법

tmux 창의 이름을 완전히 바꾸는 방법

창 이름 지정과 관련된 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####*/})

관련 정보