copy-paste is including the prompt

24 views
Skip to first unread message

Cosmos Nicolaou

unread,
Nov 13, 2025, 10:47:00 PM (7 days ago) Nov 13
to iterm2-discuss
Hi,

I'm using 3.6.5, zsh and oh-my-posh. shell integration seems to be working in that I can see the commands in the toolbelt and features like command info work fine. The only thing that doesn't work is copy-paste across multiple command invocations is including the prompts. I seem to remember that this worked before I switched to my on-my-posh but I'm not 100% sure. What else could be going wrong or this just expected to work? Thanks.

Cheers, Cos.

George Nachman

unread,
Nov 14, 2025, 12:30:48 AM (6 days ago) Nov 14
to iterm2-...@googlegroups.com
I don’t understand precisely what is not working. Maybe a screen capture video would help?

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/iterm2-discuss/43ab3bee-5265-47d8-af47-02d658c5a49an%40googlegroups.com.

Cosmos Nicolaou

unread,
Nov 15, 2025, 4:02:57 PM (5 days ago) Nov 15
to iterm2-discuss

Hi George,

I've attached two screenshots, one that shows commands as entered and that the toolbelt recognizes the commands, and a second that shows the result of copy/pasting into a vi window. You can see that the prompt is captured by the copy operation. Is this what you would expect, or would you expect iterm to filter out the prompts from the text being copied?

Cheers, Cos.
Screenshot 2025-11-14 at 11.11.22 AM.png
Screenshot 2025-11-14 at 11.10.15 AM.png

George Nachman

unread,
Nov 18, 2025, 2:58:02 PM (2 days ago) Nov 18
to iterm2-...@googlegroups.com
Are you selecting multiple commands at once and doing Edit > Copy? That will copy the prompts. If that is indeed what you’re doing, what’s the use case for copying multiple commands’ output? How would you want them delimited?

On Nov 13, 2025 at 5:34:07 PM, Cosmos Nicolaou <cosmos....@gmail.com> wrote:
--
Reply all
Reply to author
Forward
0 new messages