Using this link, i wrote custom function to yank text from x-clipboard to shell terminal on pressing C-y. I see two issues here,
copy_line_from_x_clipboard () { xsel -o } bind -x '"\C-y": copy_line_from_x_clipboard' 1) It adds shell prompt string, PS1 after pressing C-y. I prefer this function to behave exactly like Ctrl - Shift -v. Presently, it outputs,
CLIPBOARD_STUFF PS1$ 2) It empties the system clipboard, after yanking the text first time. Second time, i press C-y, no more contents are getting yanked.