function drush_get_editor

8.0.x drush_get_editor()
6.x drush_get_editor()
7.x drush_get_editor()
5.x drush_get_editor()
master drush_get_editor()

Returns executable code for invoking preferred test editor.

The next line after calling this function is usually

drush_shell_exec_interactive($exec, $filepath, $filepath) 

See also


Related topics

3 calls to drush_get_editor()
drush_config_edit in commands/core/
Edit command callback.
drush_core_config in commands/core/
Command callback. Edit drushrc and alias files.
InitCommandFile::initializeDrush in lib/Drush/CommandFiles/core/InitCommandFile.php
Initialize local Drush configuration


includes/, line 92
Functions for executing system commands. (e.g. exec(), system(), ...).


function drush_get_editor() {
  $bg = drush_get_option('bg') ? '&' : '';
  // see
  $exec = drush_get_option('editor', '${VISUAL-${EDITOR-vi}}') . " %s $bg";
  return $exec;