Jump to content

Run Terminal Commands From Alfred

Recommended Posts

This is a very simple workflow. There are three hardcoded options. The keyword for the workflow is tm

  1. tm dd - This changes to a directory where I have a docker setup and runs docker-compose up.
  2. tm ddd - The same as above but runs docker-compose down.
  3. tm zsh - Opens your .zshrc file with VSCode.


If you pass anything else other that those 3 commands, the workflow will attempt to run whatever input you give it. For example.
tm npm install -g yarn

Will install yarn globally. Commands are always run from your home directory.

A link to the workflow:

Edited by KyleP
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...