-1

To execute the last command in iTerm2, I can do:

Ctrlpreturn

How can I do a shortcut to execute this? When I try doing a remap "send text" it only sends the literal text:

$ <C-p><Return>

What would be proper way to execute the last command?

samuelbrody1249
  • 4,379
  • 1
  • 15
  • 58

1 Answers1

0

Enter in the hex codes for the two keystrokes, and :

enter image description here

You will need to look up the hex codes for each character, for example, using xxd.

$ # enter xxd in 'raw' mode, ctrl-v to send key; ctrl-d to send EOF/exit
$ xxd
^P^M
00000000: 100d 0a
samuelbrody1249
  • 4,379
  • 1
  • 15
  • 58