Grant Barratt also bombarded his ex-partner with abusive phone calls and stole a car from an elderly couple as they were about to go to hospital.
Barratt was jailed for 34 months at Leeds Crown Court over the spree of offences which took place last year.
Lydia Carroll, prosecuting, said Barratt and another man were drunk when they entered the Morrisons store in Pontefract on September 24 last year.
Police release images of man wanted in connection with serious assault at Wakefield pub
New coffee shop unveiled in old Genesis Barbers building in Ossett
Video footage shows massive blaze in Ferrybridge
Heartless thieves steal £600 watches from Wakefield Hospice charity shop
Angry revenge-porn boyfriend jailed for sending explicit photo of his ex
A security guard warned the pair to behave themselves on their way into the store.
The 34-year-old was seen walking around the store eating a chicken which he got from a takeaway counter.
The defendant put a bottle of gin into his inside jacket pocket before walking through the self-checkout area without paying for the items.
A security guard asked Barratt to hand over the items but he refused and tried to run off.
He fell over and the security guard took the gin from his pocket.
Barratt took out a pair of scissors and made a stabbing motion towards the man.
Ms Carroll said the security guard was not injured by the weapon but his uniform was damaged.
Police were called and he was arrested.
The prosecutor said Barratt harassed his former partner in February last year.
The defendant and the victim have a son together.
He was the subject of a restraining order at the time he made a series of abusive phone calls to her and left distressing voice messages.
In a further offence Barratt stole a car belonging to an elderly couple as they were de-icing the vehicle before setting off for a hospital appointment.
He drove off in the vehicle and was arrested after a police chase in which he drove dangerously, reaching 80mph in a 30mph area.
Barratt, of Spawd Bone Lane, Knottingley, pleaded guilty to aggravated vehicle taking, breach of a restraining order, common assault, two counts of theft and possession of a bladed article in public.
Jane Brady, mitigating, said Barratt pleaded guilty to the offences at an early stage and accepted he must face a custodial sentence.
Ms Brady said the offending took place at a time when he was drinking heavily and struggling to cope with a bereavement.
Barratt was also disqualified from driving for four years, seven months.