Skip to content

Instantly share code, notes, and snippets.

@shekohex
Created June 13, 2022 12:49
Show Gist options
  • Save shekohex/5618623a31d1846a7e8dbffd5955b0cb to your computer and use it in GitHub Desktop.
Save shekohex/5618623a31d1846a7e8dbffd5955b0cb to your computer and use it in GitHub Desktop.
Wezterm with Alfred Custom Terminal
on alfred_script(q)
tell application "wezterm" to activate
do shell script "/Applications/WezTerm.app/Contents/MacOS/wezterm cli send-text "
tell application "System Events" to keystroke q
tell application "System Events"
key code 36 -- enter key
end tell
end alfred_script
@gogamid
Copy link

gogamid commented Dec 29, 2023

this does not work anymore, so here is the update
https://gist.github.com/gogamid/664bccb3d02acfbc4abc0ba4dcc209d8

@namtonthat
Copy link

Hmm it works for me

@chenasraf
Copy link

chenasraf commented Aug 19, 2024

Just tried it out, works for me even in a tmux session :) thanks!

@Anastand
Copy link

Yeah it woks @gogamid <>

@gogamid
Copy link

gogamid commented Aug 27, 2024

Good for you🥴

@philocalyst
Copy link

philocalyst commented Aug 27, 2024

I made my own version, which should be less disruptive to TUI's or half-entered commands if that's something that interests you all. Originally built because my commands were being inputted as all caps, which could have been an error in my setup but I didn't care enough to find out lol

@golliher
Copy link

The original still works for me in Jan 2025. The "here's the update version" creates a split pane and I don't know why that would be preferable.

@cwelsys
Copy link

cwelsys commented Jul 7, 2025

still works just fine, ty <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment