Added this to Ubuntu bashrc file
sudo nano ~/.bashrc
function cursor {
if [[ $# = 0 ]]
then
open -a "Cursor"
else
local argPath="$1"
[[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}"
open -a "Cursor" "$argPath"
fi
}
Load the changes
source ~/.bashrc
I suspect this should with zsh as well