1
0
Fork 0

some window naming for tmux

This commit is contained in:
Von Random 2018-06-28 19:23:32 +03:00
parent 0b80f59127
commit 2ac396d59a
3 changed files with 8 additions and 10 deletions

4
bashrc
View file

@ -34,10 +34,10 @@ prompt_command()
{ {
case ${TERM} in case ${TERM} in
rxvt*|st*|xterm*) rxvt*|st*|xterm*)
printf "\033]0;%s@%s\007" "${USER}" "${HOSTNAME%%.*}" printf "\033]0;%s\007" "${HOSTNAME%%.*}"
;; ;;
screen*|tmux*) screen*|tmux*)
printf "\033k%s@%s\033\\" "${USER}" "${HOSTNAME%%.*}" printf "\033k%s\033\\" "${HOSTNAME%%.*}"
;; ;;
esac esac
if ((UID)); then if ((UID)); then

View file

@ -1,7 +1,5 @@
unbind C-b unbind C-b
bind C-g send-prefix bind C-g send-prefix
bind s split-window -v
bind v split-window -h
bind h select-pane -L bind h select-pane -L
bind j select-pane -D bind j select-pane -D
bind k select-pane -U bind k select-pane -U
@ -19,9 +17,9 @@ bind -n M-q previous-window
bind -n M-j next-window bind -n M-j next-window
bind -n M-k previous-window bind -n M-k previous-window
bind -n M-` last-window bind -n M-` last-window
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
set -g allow-rename off
set -g prefix C-g set -g prefix C-g
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
set -g allow-rename on
set -g mode-keys "vi" set -g mode-keys "vi"
set -g set-titles "on" set -g set-titles "on"
set -g set-titles-string "[#h:#S] #W" set -g set-titles-string "[#h:#S] #W"
@ -34,8 +32,8 @@ set -g status-position "bottom"
set -g status-justify "left" set -g status-justify "left"
set -g status-left-length "100" set -g status-left-length "100"
set -g status-right-length "100" set -g status-right-length "100"
set -g pane-border-style "bg=default,fg=colour249" set -g pane-border-style "fg=colour249"
set -g pane-active-border-style "bg=default,fg=colour88" set -g pane-active-border-style "fg=colour88"
set -g status-style "bg=colour244" set -g status-style "bg=colour244"
set -g message-style "bg=colour88,fg=colour255" set -g message-style "bg=colour88,fg=colour255"
set -g window-status-style "bg=colour244,fg=colour255" set -g window-status-style "bg=colour244,fg=colour255"

4
zshrc
View file

@ -76,10 +76,10 @@ PROMPT4='%b%f+%N:%i%(!.%F{red}.%F{black})>%f%b '
precmd.title() { precmd.title() {
case $TERM in case $TERM in
st*|xterm*|rxvt*) st*|xterm*|rxvt*)
printf "\033]0;%s@%s\007" $USER ${HOST%%.*} printf "\033]0;%s\007" ${HOST%%.*}
;; ;;
screen*|tmux*) screen*|tmux*)
printf "\033k%s@%s\033\\" $USER ${HOST%%.*} printf "\033k%s\033\\" ${HOST%%.*}
;; ;;
esac esac
} }