Mac iTerm2 Macros

enthuguy
enthuguy used Ask the Experts™
on
Hi,
Since I stated using macbook i'm trying to find and automate few keystrokes when using iTerm2

In windows, I use MobaXterm, where I can create macros. Looks for some guidance on how to acheive in Mac iTerm2 please

some cmds which I would ike to execute wtih key combinations

alias ll='ls ltr'

which will allow me to use "ll"

thanks in advance
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Have you not looked in the PREFERENCES ?

In Profiles you can create all the shortcuts you want in the settings there
Michael HurleyWeb Geek

Commented:
I rely on AutoHotKey when I'm using windows, but for mac there is a nifty automation tool (free/opensource) that is actually pretty powerful called 'Hammerspoon'.  If all you need is one little macro to save some keystrokes, then Eoin has got you covered above.  If you are curious about more in-depth automation or macro capability take a look at their 'getting started page':
http://www.hammerspoon.org/go/

It's got all sorts of cool little tricks....
Hope its helpful!
Thanks!
Michael
E-E, Helpdesk

Author

Commented:
thanks Michael, since it’s a work Mac. couldn’t drop the Hammerspoon into application.

any other options/suggestions please

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial