Just clone this repo, move yourself to it and run:
./setup.sh
Open iTerm2, navigate to General->Settings and point the settings directory to: ~/iterm2
. Do not copy current configurations after doing that, it'll erase your saved ones!.
Go to settings->advanced and import the settings saved on ~/raycast