To discourage other drivers from sharing your lane, it is usually best to:

By riding in the center portion of your lane, you can discourage drivers and riders in neighboring lanes from trying to squeeze in next to you.
DMV Writen Test