diff --git a/scripts/copy_pane_pwd.sh b/scripts/copy_pane_pwd.sh index 07b6f95..1db321f 100755 --- a/scripts/copy_pane_pwd.sh +++ b/scripts/copy_pane_pwd.sh @@ -16,10 +16,13 @@ display_notice() { main() { local copy_command + local payload # shellcheck disable=SC2119 copy_command="$(clipboard_copy_command)" + payload="$(pane_current_path | tr -d '\n')" # $copy_command below should not be quoted - pane_current_path | tr -d '\n' | $copy_command + echo "$payload" | $copy_command + tmux set-buffer "$payload" display_notice } main