summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-04-18 16:27:40 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-04-18 16:27:40 +0900
commitd091a2c4bb47b0b9abe52d5941bfbfeb6a8dc644 (patch)
tree42cbcc7879197191fec20b5e0e2a0657a4630527 /bin
parentd2f95d69fbf40d77b9b61b7e24989d607e3790a9 (diff)
[fzf-tmux] Minor adjustment
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fzf-tmux13
1 files changed, 5 insertions, 8 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux
index fb00edbe..8c16eb03 100755
--- a/bin/fzf-tmux
+++ b/bin/fzf-tmux
@@ -101,14 +101,11 @@ cleanup() {
trap cleanup EXIT SIGINT SIGTERM
# Build arguments to fzf
-touch $argsf
-if [ ${#args[@]} -gt 0 ]; then
- str=""
- for arg in "${args[@]}"; do
- str="$str \"${arg//\"/\\\"}\""
- done
- cat <<< "$str" > $argsf
-fi
+str=""
+for arg in "${args[@]}"; do
+ str="$str \"${arg//\"/\\\"}\""
+done
+cat <<< "$str" > $argsf
fail() {
>&2 echo "$1"