function drush_core_shell_alias

8.0.x shellalias.drush.inc drush_core_shell_alias($alias = FALSE)
6.x shellalias.drush.inc drush_core_shell_alias($alias = FALSE)
7.x shellalias.drush.inc drush_core_shell_alias($alias = FALSE)
5.x shellalias.drush.inc drush_core_shell_alias($alias = FALSE)

Print out the specified shell aliases.

File

commands/core/shellalias.drush.inc, line 54
Shell alias commands.

Code

function drush_core_shell_alias($alias = FALSE) {
  $shell_aliases = drush_get_context('shell-aliases', array());
  if (!$alias) {
    return $shell_aliases;
  }
  elseif (isset($shell_aliases[$alias])) {
    return array($alias => $shell_aliases[$alias]);
  }
}