Using scp with ohmyzsh
scp please see me.
Wildcard Copies
This trips me up everytime I attempt to copy files from a RaspberryPi to my MacBook.
When using a zsh
shell, you must escape wildcard characters.
Good
> scp pi@123.45.67.89:/home/some/dir/\* ./data/
Bad
> scp pi@123.45.67.89:/home/some/dir/* ./data/
Source
Credit goes to this stack overflow response that I have stumbled towards dozens of times.