[fzf-tmux] Minor adjustment

This commit is contained in:
Junegunn Choi 2015-04-18 16:27:40 +09:00
parent d2f95d69fb
commit d091a2c4bb

View File

@ -101,14 +101,11 @@ cleanup() {
trap cleanup EXIT SIGINT SIGTERM trap cleanup EXIT SIGINT SIGTERM
# Build arguments to fzf # Build arguments to fzf
touch $argsf str=""
if [ ${#args[@]} -gt 0 ]; then for arg in "${args[@]}"; do
str="" str="$str \"${arg//\"/\\\"}\""
for arg in "${args[@]}"; do done
str="$str \"${arg//\"/\\\"}\"" cat <<< "$str" > $argsf
done
cat <<< "$str" > $argsf
fi
fail() { fail() {
>&2 echo "$1" >&2 echo "$1"