don't rename window as part of default-command
This commit is contained in:
parent
2feb71aac5
commit
b480fc00fb
1 changed files with 2 additions and 7 deletions
|
@ -12,11 +12,6 @@ set -s quiet on # disable various messages
|
|||
set -g prefix2 C-a # GNU-Screen compatible prefix
|
||||
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
|
||||
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'
|
||||
|
||||
# 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 -------------------------------------------------------------------
|
||||
|
@ -281,7 +276,7 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
|
|||
#
|
||||
# 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
|
||||
# __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%.*}
|
||||
#
|
||||
# __guard=50
|
||||
|
|
Loading…
Reference in a new issue