From b480fc00fb6ae4c68682ae61c4881eed1ab7f10d Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Thu, 6 Aug 2015 12:28:53 +0200 Subject: [PATCH] don't rename window as part of default-command --- .tmux.conf | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index f2483fb..8a19aca 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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 + 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 + to restore. %s' \\${__current_pane};") # __window=${__window%.*} # # __guard=50