2015-05-21 02:39:14 +00:00
|
|
|
;;; config.el --- shell configuration File for Spacemacs
|
|
|
|
;;
|
2020-06-25 23:10:17 +00:00
|
|
|
;; Copyright (c) 2012-2020 Sylvain Benner & Contributors
|
2015-05-21 02:39:14 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2015-10-12 14:00:57 +00:00
|
|
|
;; Emacs built-in variables
|
|
|
|
|
|
|
|
;; move point to the end of buffer on new output
|
|
|
|
(setq comint-move-point-for-output t)
|
|
|
|
|
2019-08-04 22:20:19 +00:00
|
|
|
;; allow moving around the buffer in emacs >= 26.1 in evil's normal mode
|
|
|
|
(setq term-char-mode-point-at-process-mark nil)
|
|
|
|
|
2015-05-21 02:39:14 +00:00
|
|
|
;; Variables
|
2018-11-05 14:27:32 +00:00
|
|
|
(defvar shell-default-shell (if (spacemacs/system-is-mswindows)
|
2015-05-21 10:31:48 +00:00
|
|
|
'eshell
|
|
|
|
'ansi-term)
|
2018-11-05 14:27:32 +00:00
|
|
|
"Default shell to use in Spacemacs. Possible values are `eshell' (default),
|
|
|
|
`shell', `term', `ansi-term', `multi-term' and `vterm'.")
|
2015-05-21 02:39:14 +00:00
|
|
|
|
2021-02-11 17:41:39 +00:00
|
|
|
(spacemacs|defc shell-default-position 'bottom
|
2016-03-17 01:27:25 +00:00
|
|
|
"Position of the shell. Possible values are `top', `bottom', `full',
|
2021-02-11 17:41:39 +00:00
|
|
|
`left' and `right'."
|
2021-03-19 00:11:47 +00:00
|
|
|
'(choice (const top) (const bottom) (const full) (const left) (const right)))
|
2015-05-21 02:39:14 +00:00
|
|
|
|
2021-02-11 17:41:39 +00:00
|
|
|
(spacemacs|defc shell-default-height 30
|
|
|
|
"Height in percents for the shell window."
|
|
|
|
'integer)
|
2015-05-21 02:39:14 +00:00
|
|
|
|
2018-01-22 19:55:21 +00:00
|
|
|
(defvar shell-default-width 30
|
|
|
|
"Width in percents for the shell window.")
|
|
|
|
|
2015-10-13 10:10:28 +00:00
|
|
|
(defvar shell-default-term-shell shell-file-name
|
2019-10-19 20:34:49 +00:00
|
|
|
"Default shell to use in `term', `ansi-term' and `vterm' shells.")
|
2015-07-08 04:57:15 +00:00
|
|
|
|
|
|
|
(defvar shell-enable-smart-eshell nil
|
|
|
|
"If non-nil then `em-smart' is enabled. `em-smart' allows to quickly review
|
2019-02-06 08:55:49 +00:00
|
|
|
commands, modify old commands or enter a new one.")
|
2015-07-10 23:58:13 +00:00
|
|
|
|
2015-07-26 06:41:26 +00:00
|
|
|
(defvar shell-protect-eshell-prompt t
|
2015-07-10 23:58:13 +00:00
|
|
|
"If non-nil then eshell's prompt is protected. This means that
|
2019-02-06 08:55:49 +00:00
|
|
|
movement to the prompt is inhibited like for `comint-mode'
|
|
|
|
prompts and the prompt is made read-only")
|
2016-04-28 14:22:01 +00:00
|
|
|
|
2016-04-29 22:20:59 +00:00
|
|
|
(defvar shell-default-full-span t
|
|
|
|
"If non-nil, the `shell' buffer spans full width of a frame.")
|
2019-05-19 23:09:14 +00:00
|
|
|
|
|
|
|
(defvar close-window-with-terminal nil
|
|
|
|
"If non-nil, the window is closed when the terminal is stopped.
|
2019-02-06 08:55:49 +00:00
|
|
|
This is only applied to `term' and `ansi-term' modes.")
|
2020-10-05 21:19:39 +00:00
|
|
|
|
|
|
|
(defvar spacemacs-vterm-history-file-location nil
|
|
|
|
"Bash history full file name.")
|