From 49afb96134fd3f2924f1c737bf560b11b5e2791f Mon Sep 17 00:00:00 2001 From: David Chen Date: Fri, 6 Mar 2020 11:25:15 -0800 Subject: [PATCH] ubuntu tmux fix --- tmux/fzf_panes.tmux | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmux/fzf_panes.tmux b/tmux/fzf_panes.tmux index 9ce8f4a..506be3e 100755 --- a/tmux/fzf_panes.tmux +++ b/tmux/fzf_panes.tmux @@ -1,10 +1,10 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash new_window() { [[ -x $(command -v fzf 2>/dev/null) ]] || return pane_id=$(tmux show -gqv '@fzf_pane_id') [[ -n $pane_id ]] && tmux kill-pane -t $pane_id >/dev/null 2>&1 - tmux new-window "sh $0 do_action" >/dev/null 2>&1 + tmux new-window "bash $0 do_action" >/dev/null 2>&1 } # invoked by pane-focus-in event @@ -23,7 +23,7 @@ do_action() { current_pane_id=$(tmux display-message -p '#D') tmux set -g @fzf_pane_id $current_pane_id - cmd="sh $0 panes_src" + cmd="bash $0 panes_src" set -- 'tmux capture-pane -pe -S' \ '$(start=$(( $(tmux display-message -t {1} -p "#{pane_height}")' \ '- $FZF_PREVIEW_LINES ));' \