It sounds like you've encountered a few issues with your PATH and environment variables, but don't worry - we can help you get things sorted out.
Answering your questions:
Q1: Is there a way to restore my system variables and PATH to a default?
Yes, there is a way to restore your system variables and PATH to the default settings. One way to do this is to open a new terminal window and check what the default PATH should be by running the command echo $PATH. Once you have the default PATH, you can override your existing PATH by running the following command:
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
This will set your PATH to the default settings.
Q2: How could I change my path for expo to see the application installed and run the simulator?
You can add the path to Xcode to your PATH variable by running the following command:
export PATH="$PATH:/Applications/Xcode.app/Contents/Developer/Tools"
This assumes that Xcode is installed in the default location. If it's installed somewhere else, you'll need to adjust the path accordingly.
Q3: How do I make it permanent/save it?
To make the changes to your PATH permanent, you'll need to add the export commands to a file that gets sourced every time you open a terminal window. In the case of the zsh shell, you can add the commands to the ~/.zshrc file. To do this, run the following command:
echo 'export PATH="$PATH:/Applications/Xcode.app/Contents/Developer/Tools"' >> ~/.zshrc
This will add the export command to the end of your .zshrc file. From now on, every time you open a terminal window, the command will be executed and the Xcode path will be added to your PATH.
Regarding the issues with vim and ls not being recognized commands, it's possible that these commands are not installed on your system. You can install them using a package manager like Homebrew by running the following command:
brew install vim
brew install coreutils
I hope this helps you get things back on track!
Ready to level up your coding game? Uncover the realm of microservices with our cutting-edge Microservices Developer Certification!