React-native shortcut(alias) for a screenshot on MacOs

As in my previous story where I wrote about shortcut for shaking the mobile device from your pc instead of doing it in real life (check the post here) I got annoyed by screenshotting my phone and transferring the picture to pc manually or even by passing few commands to terminal so I created this small alias that I hope could be of use to someone out here (there).

function ssandroid {
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
mv screen.png ~/Desktop

So the next time you need a screenshot from your phone that is connected to your pc just type ssandroid in your terminal and the screen shot will be taken on your phone, copied to your Desktop and removed from the phone.