From 966840321935af83dd309ed4ab491e80a9a01d58 Mon Sep 17 00:00:00 2001 From: jyn Date: Tue, 18 Jun 2024 01:52:27 -0400 Subject: [PATCH] support tilde expansion --- open.tmux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/open.tmux b/open.tmux index 042108a..b4e8f9f 100755 --- a/open.tmux +++ b/open.tmux @@ -40,7 +40,8 @@ preserve_url_hash() { command_generator() { local command_string="$1" - echo "$(preserve_url_hash) | xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string \"{}\" > /dev/null'" + # the `echo {} | bash` is to perform tilde expansion. + echo "$(preserve_url_hash) | xargs -I {} echo "echo {}" | bash | xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string \"{}\" > /dev/null'" } search_command_generator() {