addPathToSystem method

bool addPathToSystem({
  1. required String shell,
  2. required String profile,
  3. required String path,
})

Attempts to add path to system environment.

Implementation

bool addPathToSystem({
  required String shell, // For Unix-like
  required String profile, // For Unix-like
  required String path,
}) =>
    Platform.isWindows
        ? _addPathToWindowsEnvironment(path)
        : _addPathToUnixLikeProfile(shell, profile, path);