2
0
mirror of https://github.com/junegunn/fzf synced 2024-11-18 09:28:40 +00:00

Fix fzf-tmux script (bash 3.2 compatibility)

This commit is contained in:
Junegunn Choi 2015-03-07 10:07:36 +09:00
parent 6728870071
commit 5f62d224b0

View File

@ -15,7 +15,7 @@ while [ $# -gt 0 ]; do
size="$1"
fi
[[ "$arg" =~ ^-w ]] && opt="-h"
[[ "$size" =~ %$ ]] && opt="$opt -p ${size:0:-1}" ||
[[ "$size" =~ %$ ]] && opt="$opt -p ${size:0:((${#size}-1))}" ||
opt="$opt -l $size"
;;
--)