Skip to content

core:init

Enrich the bash startup file with bash aliases and a smart command prompt.

Examples

  • core-init --edit. Enrich Bash and open drush config file in editor.
  • core-init --edit --bg. Return to shell prompt as soon as the editor window opens

Options

  • --edit. Open the new config file in an editor.
  • --add-path[=ADD-PATH]. Always add Drush to the $PATH in the user's .bashrc file, even if it is already in the $PATH. Use --no-add-path to skip updating .bashrc with the Drush $PATH. Default is to update .bashrc only if Drush is not already in the $PATH.
  • --editor[=EDITOR]. A string of bash which launches user's preferred text editor. Defaults to ${VISUAL-${EDITOR-vi}}.
  • --bg. Launch editor in background process.

Aliases

  • init
  • core-init

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.