Skip to content

Instantly share code, notes, and snippets.

@darrenpmeyer
Created March 2, 2020 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenpmeyer/b3220afacd500fc2cd0095083fec0322 to your computer and use it in GitHub Desktop.
Save darrenpmeyer/b3220afacd500fc2cd0095083fec0322 to your computer and use it in GitHub Desktop.
-- in iTerm2, create a profile named 'Alfred' with the settings you want
-- this script will create a new bash login environment using that profile and run the Alfred commands
-- in Alfred's preferences, go to Terminal, select Custom, and paste this script in
on alfred_script(q)
set text item delimiters to " "
set cmdline to q as text
tell application "iTerm"
create window with profile "Alfred" command "bash -lc " & quoted form of cmdline
end tell
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment