File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1094,7 +1094,18 @@ if [ $1 = .. ]; then shift; fi; exec \"$@\""
1094
1094
:defer-install t
1095
1095
:config
1096
1096
(evil-set-initial-state 'vterm-mode 'emacs )
1097
- (set-face-foreground 'vterm-color-black " #586e75" ))
1097
+ (set-face-foreground 'vterm-color-black " #586e75" )
1098
+
1099
+ (define-advice vterm--get-shell
1100
+ (:around (old-fun) prefer-zsh)
1101
+ (require 's )
1102
+ (let ((old (funcall old-fun)))
1103
+ (if (not (s-suffix? " /sh" old))
1104
+ old
1105
+ (or
1106
+ (executable-find " zsh" t )
1107
+ (executable-find " bash" t )
1108
+ old)))))
1098
1109
1099
1110
; ; =============================================================================
1100
1111
; ; Config file modes ===========================================================
You can’t perform that action at this time.
0 commit comments