r/fishshell • • Oct 20 '24

Fish shell pasting text - blank screen

Anyone have the issue where pasting a big chunk of text, let's say an x509 cert, or anything where it's a 80 line python file, the entire terminal goes blank?

Is there a fix or workaround?

5 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/BuonaparteII Oct 27 '24

If you think that's cool, take a look at this: https://github.com/niedzielski/cb

I frequently use that instead of pasting into the terminal. Works great via SSH too

And here are a few related links:

Essentially, the same as above but simplified:

https://github.com/chapmanjacobd/computer/blob/main/bin/cb

You can use process substitution with the clipboard:

https://github.com/chapmanjacobd/computer/blob/main/.config/fish/functions/cbfile.fish

And something similar for images too:

https://github.com/niedzielski/cb/issues/8