Green’s Dictionary of Slang

smart-aleck v.

to show off.

[US]J. Steinbeck Grapes of Wrath (1951) 79: Been smart-alecking aroun’ the country.
[UK]A. Wesker Chips with Everything I i: I will tear [...] the scorching daylights out of any one who smarts the alec with me.
[US](con. 1900s) G. Swarthout Shootist 131: Quitting school to smart-aleck around Utah Steet. And now this.