isCompletionInstalled property

  1. @override
bool get isCompletionInstalled
override

Returns true if the dcil_complete has been installed as a bash auto completer

Implementation

@override
bool get isCompletionInstalled {
  var completeInstalled = false;
  final startFile = pathToStartScript;

  if (exists(startFile)) {
    read(startFile).forEach((line) {
      if (line.contains('dcli_complete')) {
        completeInstalled = true;
      }
    });
  }

  return completeInstalled;
}