Beginner here with what I hope is a simple question!
I entered 'exort' rather than 'export' when creating a new environmental variable using the terminal and now every time I open a new terminal window I see the following:
$ -bash: exort: command not found
I have looked at the environmental variables saved to my bash profile (
~/.bash_profile) and the one with the typo is on the penultimate line:
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* export SEASON=winter exort ANOTHERVAR=salut export ANOTHERVAR=salut
I tried to run
$ unset ANOTHERVAR
but it didn't seem to remove ANOTHERVAR.
Would appreciate any suggestions on how I can remove ANOTHERVAR and delete this line from the terminal window.
Thank you very much