Skip to content

Instantly share code, notes, and snippets.

@enisozgen
Created March 23, 2017 08:10
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 enisozgen/61a3b620eb529d32ab95a52b46cd0ad1 to your computer and use it in GitHub Desktop.
Save enisozgen/61a3b620eb529d32ab95a52b46cd0ad1 to your computer and use it in GitHub Desktop.
; I don't know where I stole it but it works well
(defun open-terminal-pop-project-root ()
(interactive)
(do-applescript
(format "
tell application \"iTerm 2\"
tell current window
tell current session
write text \"cd %s\"
end tell
end tell
end tell
activate application \"iTerm 2\"
"
(or projectile-project-root default-directory "~"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment