Skip to content

Commit

Permalink
support tilde expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Jun 18, 2024
1 parent 763d0a8 commit 9668403
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion open.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9668403

Please sign in to comment.