In my ubuntu bash, I had remapped Ctrl-y key combo to copy text to clipboard as,
bind -x '"\C-y": copy_line_from_x_clipboard'
It works. Now, I am migrating to Macbook, I like to use Command key instead of Ctrl key above. I am not seeing any keybinding examples on net that contain Mac OS' command key.
And I tried to get the key combo for Command-y using the command sed -n l as explained here, but it shows empty line after taking Command-y key input.
For those who are interested, the callee function to paste text from clipboard is,
copy_line_from_x_clipboard() {
local n=$READLINE_POINT
local l=$READLINE_LINE
local s=$(xsel -ob)
READLINE_LINE=${l:0:$n}$s${l:$n:$((${#l}-n))}
#READLINE_LINE=${l:0:$n}$s
READLINE_POINT=$((n+${#s}))
}


$other? If so, is there anything in the preferences for those for pushing a command key into something that gets to the shell?/Applications/Utilities/Terminal.app