Skip to content

Commit 9668403

Browse files
committed
support tilde expansion
1 parent 763d0a8 commit 9668403

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

open.tmux

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ preserve_url_hash() {
4040

4141
command_generator() {
4242
local command_string="$1"
43-
echo "$(preserve_url_hash) | xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string \"{}\" > /dev/null'"
43+
# the `echo {} | bash` is to perform tilde expansion.
44+
echo "$(preserve_url_hash) | xargs -I {} echo "echo {}" | bash | xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string \"{}\" > /dev/null'"
4445
}
4546

4647
search_command_generator() {

0 commit comments

Comments
 (0)