I have accidentally deleted the content of /etc/bash.bashrc and now I cannot log in as it gives me a loop and I cannot run any interactive programs from the terminal. When I try, I get this error:
XDG_RUNTIME_DIR not set in the environment when trying to run gedit
GTK: cannot open display when trying to run google chrome
cannot connect to X server when trying to run rstudio
However, I can run non interactive programs (e.g R and python) from the terminal.
What do I need to add in bash.bashrc to get to see X11 or programs that use DISPLAY?