Bash has a Bash Profile which is a file that allows you to configure how your terminal behaves and define your own custom functions. Here’s some configurations that set your default text editor and make it easy for you to edit your profile in the future.
touch ~/.bashrc ~/.bash_profilethis will make sure the files ~/.bashrc and ~/.bash_profile exist
~/.bashrcfiles in your text editor
.bashrcloads when the profile loads, and set your default editor to VSCode, add the following lines to the end of your ~/.bash_profile
# Read $HOME/.bashrc, if present. if [ -f $HOME/.bashrc ]; then source $HOME/.bashrc fi # set the default editor to VSCode export EDITOR=code
the bash configuration files are loaded by bash at different times - we edit them both to ensure node will always be setup
source ~/.bashrcto load the new configuration (or open a new tab)