From cfea7769231f40ea8343aae0d804b0549dbe2afa Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Thu, 21 Aug 2014 11:15:05 +0200 Subject: [PATCH] fish shell compatibility --- .tmux.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 4689385..eaeca8e 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -29,7 +29,7 @@ bind e new-window -n '~/.tmux.conf' '${EDITOR:-vim} ~/.tmux.conf && tmux source bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' # see https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard -set -g default-command "initializing() { $(command -v reattach-to-user-namespace) $SHELL -l; }; initializing" +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"' # -- display ------------------------------------------------------------------- @@ -38,8 +38,8 @@ set -g base-index 1 # start windows numbering at 1 setw -g pane-base-index 1 # make pane numbering consistent with windows setw -g automatic-rename on # rename window to reflect current program -# renumber windows when a window is closed, tmux > 1.6 -if '[ $(echo "$(tmux -V | cut -d' ' -f 2) > 1.6" | bc) -eq 1 ]' 'set -g renumber-windows on' +# renumber windows when a window is closed +set -g renumber-windows on set -g set-titles on # set terminal title set -g set-titles-string '#h ❐ #S ● #I #W' @@ -125,7 +125,7 @@ bind -t vi-copy H start-of-line bind -t vi-copy L end-of-line # copy to Mac OSX pasteboard -if 'command -v reattach-to-user-namespace' 'bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"' +if 'which -s reattach-to-user-namespace' 'bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"' # -- user defined --------------------------------------------------------------