Skip to content

Commit

Permalink
hammerspoon/term: Spawn Ghostty
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Nov 15, 2024
1 parent 4f56a96 commit abef4dd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sys/macos/.hammerspoon/term.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
-- Terminal customizations

local function newTerminal()
if hs.application.find('iTerm') == nil then
hs.application.launchOrFocus('iTerm')
local ghostty = hs.application.find('Ghostty')
if ghostty == nil then
hs.application.launchOrFocus('Ghostty')
else
hs.applescript.applescript([[
tell application "iTerm"
create window with default profile
end tell
]])
ghostty:selectMenuItem({'File', 'New Window'})
end
end

Expand Down

0 comments on commit abef4dd

Please sign in to comment.