I'm trying to minimize using of mouse. Copying text in terminal is the mostly inconvenient activity for mouse avoiding. Now,
tmux helping me to obtain this purpose. However, I regularly needs to copy text currently entered to bash prompt. Currently entered text means that I typed some symbols in prompt, but didn't press Enter.
tmux way for this purpose needs for too much keyboard shortcuts.
I'd like some script, that copying current text from prompt to clipboard. I want to add this script to
~/.bashrc and assign keyboard shortcut to. How to write this script?