summaryrefslogtreecommitdiff
path: root/terminal-here.el
diff options
context:
space:
mode:
Diffstat (limited to 'terminal-here.el')
-rw-r--r--terminal-here.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/terminal-here.el b/terminal-here.el
index 707ebb5..ec461ea 100644
--- a/terminal-here.el
+++ b/terminal-here.el
@@ -62,6 +62,17 @@ changed it by running `cd'."
(interactive)
(terminal-here-launch-in-directory default-directory))
+
+(defun terminal-here-project-launch ()
+ (interactive)
+ "Launch a terminal in the current project root.
+
+If projectile is installed the projectile root will be used,
+ Otherwise `vc-root-dir' will be used."
+ (terminal-here-launch-in-directory (if (functionp 'projectile-project-root)
+ (projectile-project-root)
+ (vc-root-dir))))
+
(provide 'terminal-here)