I can not recall the exact steps that brought me here.
I tried to install xonsh but failed in the process.
At one point i was without a shell because i set xonsh as deafault shell, and then sudo apt purged it.
I also changed to /etc/shells (added xonsh)
was able to get bash back as default shell.
In the process, i somehow fked up my user profile. It is no longer listed when logging in.
According to Ubuntu 20.04 user not listed to login
I checked if my user in /var/lib/AccountsService/users is listed as system user - it is.
So i modified it. After every restart, it transforms to system again.
Also my shell is somehow broken, VS Code says "Unable to resolve your shell environment" after each startup.
Is there any (automatic) procedure i can do to recover a working system without reinstalling?
My relevant bash history is:
bash Miniconda3-latest-Linux-x86_64.sh
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/homefolder/.zprofile
brew
gh
sudo apt install gitsome
gitsome
cd --
gitsome
conda
conda config --add channels conda-forge
conda install xonsh
xonsh
gitsome
xonsh
xosh
xonsh
xonsh
gitsome
su
xonsh
sudo apt remove gitsome
pip3 install gitsome
gitsme
gitsome
su
sudo -i
xonsh
xonsh
sudo /i
sudo -i
which xonsh
cdch
chsh
chsh
which xonsh
chsh
ls
conda
conda remove
conda remove xonsh
conda install xonsh
xonsh
conda
conda install xonsh
xonsh
which xonsh
sudo
sudo /i
sudo -i
su
xonsh
su
sudo -i
sudo nano
cd /
ls
cd etc
nano shells
chcd
chcp
chsh
export PATH=~/miniconda3/bin:$PATH
conda --version
conda install anaconda-clean
anaconda-clean --yes
chsc
chsh
sudo chsh
test
xand
xonsh
sudo apt-remove
sudo apt remove xonsh
sudo apt purge xonsh
sudo apt autoremove
sudo apt install
sudo apt install xonsh
xonsh
chcs
chsh
sudo chsh
sudo apt purge xonsh
xonsh where
sudo apt autoremove
sudo apt get xonsh
sudo apt-get xonsh
xonsh
sudo apt install xonsh
xonsh
xonfig web
xonsh
xonsh which
xonsh where
which xonsh
which xonsh >> /etc/shells
sudo which xonsh >> /etc/shells
sudo -i
xonfig
xonsh
sudo chsh /usr/bin/xonsh
sudo chsh
xonsh
chsh xonsh
sudo chsh
sudo
xonsh
Help is greatly appreciated.