The man accused of murdering a Carlisle barber in 2021 pleaded guilty Thursday just days before jury selection was to begin for a trial.