How to flexibly change between Cursor and VSCode

Recently, I have run Shell Command: Install 'cursor' command. It works perfectly. But there is a problem when I want to open VSCode from terminal. When I type cursor . or code ., it opens Cursor all the time. Could I set up cursor . for Cursor and code . for VSCode? Or is there any other way?