                         (vterm-clear-scrollback))
                     (delete-window))))
                ((equal (length shell-buffers) 0)
-                (meain/shell-new))
+                (meain/shell-new t))
                (t (progn
                     (pop-to-buffer (car shell-buffers))
                     (if rerun-previous

                          (vterm-clear-scrollback)
                          (vterm-send-up)
                          (vterm-send-return))))))))
          (defun meain/shell-new ()
            "Create a new shell for the current project."
            (interactive)
            (if (equal major-mode 'vterm-mode)
                (delete-window))
            (setq default-directory (cond
                                     ((projectile-project-p)
                                      (projectile-project-root))
                                     (t "~/")))
            (vterm (meain/shell-name)))
          (defun meain/shell-other (&optional alternate)
            "Switch to previous shell in current project. Use ALTERNATE to get a list of shell in current project."
            (interactive "P")

                     (s-starts-with-p "*popup-shell" bufname))
                   (display-buffer-reuse-window display-buffer-at-bottom)
                   (reusable-frames . visible)
                   (window-height . 0.3)))
    (defun meain/clear-and-exec ()
      (interactive)
      (vterm-clear)
