Favorite commands?

192 views
Skip to first unread message

Event Guyz

unread,
Oct 12, 2021, 6:28:19 PM10/12/21
to iterm2-discuss
Is there anyway to save commands I run often?  I use to use a program called ZOC and it had the ability to add as many favorite commands as you want and then you could associate those commands with a profile.

So for example: I have a bunch of profiles with the keyword F5 that I would like some favorite commands to be available that while on one of the profiles that F5, these favorite commands would be available to click on and it would send the cli command to the window

You would do this for Linux commands or maybe you have certain servers you maintain and having favorite commands that you run all the time at your finger tips.

I know you can  do python scripts but that's pretty intense.  If I use the python method then I would have hundreds of python scripts running one command and they would be available to all profiles even if the script would never work on those.

George Nachman

unread,
Oct 20, 2021, 1:46:42 PM10/20/21
to iterm2-...@googlegroups.com
You can save them in Snippets, although they are not per-profile.

You can also use command history by installing shell integration on the remote host. That will record commands automatically per hostname. You can view command history in the tool belt or with Session > Open command history.

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/3b62785a-cdc3-46bf-8152-6399bbd73599n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages