Re:Yank: Yank Terminal Output to Clipboard
by michelledepeil on Sunday March 28, 2021 @05:31AM
(#26609025)
The final example `yank -- xsel -b` is probably the most directly useful for me, but it still doesn't solve the following problem which irritates me to all hell:
Is there any sane way to copy the perfectly formatted `git push -u` command shown above without resorting to the following eval, which doesn't alias nicely?
[ Parent
| on HN ]
I think “thefuck” handles this case really well: https://github.com/nvbn/thefuck
Re:Yank: Yank Terminal Output to Clipboard
by michelledepeil on Monday March 29, 2021 @04:10AM
(#26618782)
This is perfect, because it's an after-the-fact solution instead of me trying to remember to type the right git command in the first place, much like copy-pasting the suggested command is. Thanks for the suggestion!