Skip to content

Commit

Permalink
Customize shell to run with prelude-visit-term-buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
bkruczyk authored and Bartłomiej Kruczyk committed Oct 15, 2015
1 parent 5b0c51d commit c35bbaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/prelude-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ This variable can be set via .dir-locals.el to provide multi-term support.")
"Create or visit a terminal buffer."
(interactive)
(prelude-start-or-switch-to (lambda ()
(ansi-term (getenv "SHELL") (concat prelude-term-buffer-name "-term")))
(ansi-term prelude-shell (concat prelude-term-buffer-name "-term")))
(format "*%s-term*" prelude-term-buffer-name)))

(defun prelude-search (query-url prompt)
Expand Down
5 changes: 5 additions & 0 deletions core/prelude-custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ Only modes that don't derive from `prog-mode' should be listed here."
:type 'symbol
:group 'prelude)

(defcustom prelude-shell (getenv "SHELL")
"The default shell to run with `prelude-visit-term-buffer'"
:type 'string
:group 'prelude)

(provide 'prelude-custom)

;;; prelude-custom.el ends here

0 comments on commit c35bbaa

Please sign in to comment.