--shell marks the expansion as a shell expression, evaluated through a shell interpreter, so $1 captures the argument after the alias. Here gh prd 123 runs gh pr view 123. Shell aliases unlock pipes, loops, and argument manipulation plain aliases cannot do.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.