fullMarker method

  1. @override
String fullMarker(
  1. CwdMarker marker
)
override

The full marker command: reports cwd plus git branch/status and privilege.

Implementation

@override
String fullMarker(CwdMarker marker) {
  final (a, b) = marker.tokenHalves;
  // `<nul set /p "=text"` prints text without a trailing newline; chain the
  // halves and the cwd, then a final `echo.` for the line terminator.
  return '<nul set /p "=$a"& <nul set /p "=$b%CD%"& echo.';
}