Is there a way to create shortcut or alias for ‘--dry-run=client -o yaml’?

Ramit Sharma:
Is there a way to create shortcut or alias for ‘–dry-run=client -o yaml’ ?

Malayamanas Panda:
export dry=‘–dry-run=client -o yaml’

alias k=kubectl; alias c=clear; source <(kubectl completion bash); complete -F __start_kubectl k;

then

k run test --image=nginx:alpine --replicas=3 $dry > pod.yaml

Ramit Sharma:
Thank you