5 ms·
function copy_last_command { history 1 | sed 's/ [0-9]* //' | xclip -i } bind -x '"\C-h":copy_last_command'
by dllthomas 5y ago
function copy_last_command {
history 1 | sed 's/ [0-9]* //' | xclip -i
}
bind -x '"\C-h":copy_last_command'
- bobbyi_settv 5y agoThe Mac equivalent of xclip -i is pbcopy