1
0
Fork 0
mirror of synced 2024-11-10 11:48:59 -05:00

don't rename window as part of default-command

This commit is contained in:
Gregory Pakosz 2015-08-06 12:28:53 +02:00
parent 2feb71aac5
commit b480fc00fb

View file

@ -12,11 +12,6 @@ set -s quiet on # disable various messages
set -g prefix2 C-a # GNU-Screen compatible prefix set -g prefix2 C-a # GNU-Screen compatible prefix
bind C-a send-prefix -2 bind C-a send-prefix -2
# uncomment to force vi-style key bindings
# emacs is the default unless $EDITOR or $VISUAL contain 'vi'
#set -g status-keys vi
#setw -g mode-keys vi
set -g status-utf8 on # expect UTF-8 set -g status-utf8 on # expect UTF-8
setw -g utf8 on setw -g utf8 on
@ -29,7 +24,7 @@ bind e new-window -n '~/.tmux.conf' "sh -c '\${EDITOR:-vim} ~/.tmux.conf && tmux
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
# see https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard # see https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
if 'which -s reattach-to-user-namespace' 'set -g default-command "tmux rename-window initializing; tmux set -w automatic-rename; reattach-to-user-namespace $SHELL -l"' if 'which -s reattach-to-user-namespace' 'set -g default-command "exec initializing... 2> /dev/null & reattach-to-user-namespace $SHELL -l"'
# -- display ------------------------------------------------------------------- # -- display -------------------------------------------------------------------
@ -281,7 +276,7 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
# #
# if [ x"${__restore}" = x ] ; then # if [ x"${__restore}" = x ] ; then
# [ x"$(tmux list-panes | wc -l | sed 's/^ *//g')" = x1 ] && tmux display "Can't maximize with only one pane" && return # [ x"$(tmux list-panes | wc -l | sed 's/^ *//g')" = x1 ] && tmux display "Can't maximize with only one pane" && return
# __window=$(tmux new-window -P "exec maximized& tmux setw remain-on-exit on; clear; tmux clear-history; printf 'Pane has been maximized, press <prefix>+ to restore. %s' \\${__current_pane};") # __window=$(tmux new-window -P "exec maximized...& tmux setw remain-on-exit on; clear; tmux clear-history; printf 'Pane has been maximized, press <prefix>+ to restore. %s' \\${__current_pane};")
# __window=${__window%.*} # __window=${__window%.*}
# #
# __guard=50 # __guard=50