Jump to content

Send command to a running detached tmux session using Alfred

Recommended Posts

Hello everyone,


I've been desperately trying to send a few commands to my tmux sessions from alfred. To send tmux commands I am using:

$ tmux send-keys -t my-session-name:0 "my command" ENTER

This is easily done from the terminal itself. Want to shorten the process.

Link to comment
On 8/20/2020 at 1:27 PM, deanishe said:

Put your command in a Run Script action with Language = /bin/bash, and run it via a Keyword or Hotkey.


Be sure to use the full path to tmux, i.e. /usr/local/bin/tmux send-keys ...


It worked! Thanks ton

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...