A splash of lemon or lime juice mixed in when making your guacamole will keep it green and will minimize it from browning.

Save the pit when cutting the avocado.  Add the whole pit to the guacamole before storing.   The citric acid from the juice helps the guacamole retain its color.