vi ~/.zshrc

#!/bin/bash
alias rdp='cat /Users/lindong/Downloads/rdp_conf.conf >> /Users/lindong/Downloads/*.rdp ; open /Users/lindong/Downloads/*.rdp ;  sleep 5 ; rm -f /Users/lindong/Downloads/*.rdp'

alias rdp='sed -i "$ a screen mode id:i:1\ndesktopwidth:i:2150\ndesktopheight:i:1274" /Users/lindong/Downloads/*.rdp ; open /Users/lindong/Downloads/*.rdp ; rm -f /Users/lindong/Downloads/*.rdp'

alias rdp='sed -i "$ a screen mode id:i:2\nsmart sizing:i:1\ndynamic resolution:i:1\ndesktop size id:i:4" /Users/lindong/Downloads/*.rdp ; open /Users/lindong/Downloads/*.rdp ; rm -f /Users/lindong/Downloads/*.rdp'