popd method
Pop the current directory to get the previous shell throw State error if nothing in the stack
Implementation
@override
Shell popd() {
if (_parentShell == null) {
throw StateError('no previous shell');
}
if (_options.commandVerbose) {
stdout.writeln('\$ cd ${_parentShell!._workingDirectoryPath}');
}
return _parentShell!;
}