function _drush_core_config_bash_files

8.0.x core.drush.inc _drush_core_config_bash_files()
master core.drush.inc _drush_core_config_bash_files()
1 call to _drush_core_config_bash_files()

File

commands/core/core.drush.inc, line 771
Core drush commands.

Code

function _drush_core_config_bash_files() {
  $bash_files = array();
  $home = drush_server_home();
  if ($bashrc = drush_init_find_bashrc($home)) {
    $bash_files[] = $bashrc;
  }
  $prompt = $home . '/.drush/drush.prompt.sh';
  if (file_exists($prompt)) {
    $bash_files[] = $prompt;
  }
  return $bash_files;
}