Skip to content

Commit 462d89c

Browse files
authored
Merge pull request #1386 from ychin/login-shell-docs
Improve login shell docs
2 parents d0f1a0a + a11766d commit 462d89c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

runtime/doc/gui_mac.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ KEY VALUE ~
277277
*MMDisableLaunchAnimation* disable launch animation when opening a new
278278
MacVim window [bool]
279279
*MMFontPreserveLineSpacing* use the line-spacing as specified by font [bool]
280+
*MMLoginShell* use login shell for launching Vim [bool]
280281
*MMLoginShellArgument* login shell parameter [string]
281282
*MMLoginShellCommand* which shell to use to launch Vim [string]
282283
*MMFullScreenFadeTime* fade delay for non-native fullscreen [float]
@@ -326,13 +327,15 @@ new Vim processes via a login shell so that all environment variables are set.
326327

327328
By default MacVim uses the $SHELL environment variable to determine which
328329
shell to use (if $SHELL is not set "/bin/bash" is used). It is possible to
329-
override this choice by setting the user default MMLoginShellCommand to the
330+
override this choice by setting the user default |MMLoginShellCommand| to the
330331
shell that should be used (e.g. "/bin/tcsh"). MacVim tries to make the shell
331332
a login shell by prepending argv[0] with a dash. If you use an exotic shell
332333
and need to pass it a parameter to make it a login shell then you can set the
333-
user default MMLoginShellArgument (e.g. to "-l"). Finally, if the "bash"
334+
user default |MMLoginShellArgument| (e.g. to "-l"). Finally, if the "bash"
334335
shell is used, then "-l" is automatically added as an argument. To override
335-
this behaviour set MMLoginShellArgument to "--".
336+
this behaviour set |MMLoginShellArgument| to "--".
337+
338+
To turn off using a login shell, you can set |MMLoginShell| to 0.
336339

337340
==============================================================================
338341
4. MacVim appearance *macvim-appearance*

runtime/doc/tags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5509,6 +5509,7 @@ MMDialogsTrackPwd gui_mac.txt /*MMDialogsTrackPwd*
55095509
MMDisableLaunchAnimation gui_mac.txt /*MMDisableLaunchAnimation*
55105510
MMFontPreserveLineSpacing gui_mac.txt /*MMFontPreserveLineSpacing*
55115511
MMFullScreenFadeTime gui_mac.txt /*MMFullScreenFadeTime*
5512+
MMLoginShell gui_mac.txt /*MMLoginShell*
55125513
MMLoginShellArgument gui_mac.txt /*MMLoginShellArgument*
55135514
MMLoginShellCommand gui_mac.txt /*MMLoginShellCommand*
55145515
MMNativeFullScreen gui_mac.txt /*MMNativeFullScreen*

0 commit comments

Comments
 (0)