Why doesn't the alias work, but the function does works inside my .bash_profile?
Code inside .bash_profile (below)
alias pxsz='sips -g pixelWidth $1 && sips -g pixelHeight $1'
pxlsz () {
sips -g pixelWidth $1 && sips -g pixelHeight $1
}
When I tested the alias with
alias pxsz="echo '$1 1' && echo '$1 2' "
gives
$pxsz tag_struct.jpg
1
2 tag_struct.jpg