Gas/diesel will still be around for the rest of my lifetime.
There is no other technology in existence that can compete.
The electrics and other technologies that are now available to not have the needed range, performance, or refuelability, or reliability of gas/diesel.
Any new tech that does make it to mainstream will take a long time to replace the old.
I would not waste time worrying about something that has not yet been invented.