aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-11 14:38:51 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-11 14:38:51 +0100
commitb54f81925ef1dac55ad075e1b8b72e608aab269f (patch)
treed65d1db37135748633c57b9c384d4d9a89befdf0 /vis-core.h
parentb3fb1e437f84138e5d6e8d9f6adbfce303b3a792 (diff)
downloadvis-b54f81925ef1dac55ad075e1b8b72e608aab269f.tar.gz
vis-b54f81925ef1dac55ad075e1b8b72e608aab269f.tar.xz
vis: attempt to use the default shell of the user to execute external commands
We first try $SHELL and then fall back to the shell field of the password file entry (/etc/passwd).
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis-core.h b/vis-core.h
index 6940eaf..e16d23a 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -158,6 +158,7 @@ struct Vis {
int tabwidth; /* how many spaces should be used to display a tab */
bool expandtab; /* whether typed tabs should be converted to spaces */
bool autoindent; /* whether indentation should be copied from previous line on newline */
+ char *shell; /* shell used to launch external commands */
Map *cmds; /* ":"-commands, used for unique prefix queries */
Map *usercmds; /* user registered ":"-commands */
Map *options; /* ":set"-options */