prependToPATH method

  1. @override
bool prependToPATH(
  1. String path
)
override

Prepends the given path to the bash path if it isn't already on the path.

Implementation

@override
bool prependToPATH(String path) {
  if (!isOnPATH(path)) {
    final export = 'export PATH=$path:\$PATH';
    _updatePATH(export);
  }
  return true;
}