summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-06-08 01:27:22 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-06-08 01:27:22 +0900
commit6a431cbf49799327d763681758943be9e313b034 (patch)
tree4820d2cdc44b0b6eef529ea1963ee373e7d6294f
parent56fb2f00b3d3b6eed606d58411b5e6495ec99afc (diff)
[fzf-tmux] Escape $ in arguments
e.g. fzf-tmux -q '$PATH' Related: #343
-rwxr-xr-xbin/fzf-tmux1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux
index 932b3c08..4ab899ab 100755
--- a/bin/fzf-tmux
+++ b/bin/fzf-tmux
@@ -137,6 +137,7 @@ for arg in "${args[@]}"; do
arg="${arg//\\/\\\\}"
arg="${arg//\"/\\\"}"
arg="${arg//\`/\\\`}"
+ arg="${arg//$/\\$}"
opts="$opts \"$arg\""
done