|
|
|
@ -130,7 +130,7 @@ while [[ $# -gt 0 ]]; do
|
|
|
|
|
[[ -n "$skip" ]] && args+=("$arg")
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if [[ -z "$TMUX" || "$opt" =~ ^-h && "$columns" -le 40 || ! "$opt" =~ ^-h && "$lines" -le 15 ]]; then
|
|
|
|
|
if [[ -z "$TMUX" ]]; then
|
|
|
|
|
"$fzf" "${args[@]}"
|
|
|
|
|
exit $?
|
|
|
|
|
fi
|
|
|
|
@ -222,14 +222,14 @@ if [[ -n "$term" ]] || [[ -t 0 ]]; then
|
|
|
|
|
TMUX=$(echo $TMUX | cut -d , -f 1,2) tmux set-window-option synchronize-panes off \;\
|
|
|
|
|
set-window-option remain-on-exit off \;\
|
|
|
|
|
split-window $opt "${tmux_args[@]}" "$envs bash -c 'cd $(printf %q "$PWD"); exec -a fzf bash $argsf'" $swap \
|
|
|
|
|
> /dev/null 2>&1
|
|
|
|
|
> /dev/null 2>&1 || { "$fzf" "${args[@]}"; exit $?; }
|
|
|
|
|
else
|
|
|
|
|
mkfifo $fifo1
|
|
|
|
|
cat <<< "\"$fzf\" $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" >> $argsf
|
|
|
|
|
TMUX=$(echo $TMUX | cut -d , -f 1,2) tmux set-window-option synchronize-panes off \;\
|
|
|
|
|
set-window-option remain-on-exit off \;\
|
|
|
|
|
split-window $opt "${tmux_args[@]}" "$envs bash -c 'exec -a fzf bash $argsf'" $swap \
|
|
|
|
|
> /dev/null 2>&1
|
|
|
|
|
> /dev/null 2>&1 || { "$fzf" "${args[@]}"; exit $?; }
|
|
|
|
|
cat <&0 > $fifo1 &
|
|
|
|
|
fi
|
|
|
|
|
cat $fifo2
|
|
|
|
|