Skip to content

Commit 3357626

Browse files
committed
docs: show a note about argument expansion
1 parent 3139fa8 commit 3357626

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

bin/proxy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
22
set -eo pipefail
33
# Use `tmux display` to ensure we see the latest environments.
4-
IFS=':' read -r _ caller < <(tmux display -p '#{__tmux_popup_caller}')
4+
IFS=':' read -r _ caller < <(tmux display-message -p '#{__tmux_popup_caller}')
55
TMUX=${caller:-$TMUX} exec tmux "$@"

src/toggle.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ usage() {
1717
1818
toggle.sh [OPTIONS] [POPUP_OPTIONS] [SHELL_COMMAND]...
1919
20+
Note that every argument will be expanded as a tmux format string
21+
before it is parsed. To avoid unexpected expansion of certain format
22+
strings, escape them with `##{<format string>}`.
23+
2024
Options:
2125
2226
--name <name> Popup name [Default: "$DEFAULT_NAME"]

0 commit comments

Comments
 (0)