From some point, suddenly (I guess after an Ubuntu update?), it starts in the root directory when I open a new terminal.I want to start from my home directory as before.
The below is my shell script(I removed all the comments).I am running Ubuntu on WSL2 on Windows 10
export ZSH="/home/myubuntu/.oh-my-zsh"ZSH_THEME="bira"DISABLE_LS_COLORS="true"plugins=(git)source $ZSH/oh-my-zsh.shalias tre='tree -a -C -I '\''node_modules|.git'\'' --dirsfirst'export NVM_DIR="$HOME/.nvm"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion#cd workspaceif [ "$PWD" = "$HOME" ]; then cd workspace; fi# added by travis gem[ ! -s /home/myubuntu/.travis/travis.sh ] || source /home/myubuntu/.travis/travis.sh
This is Ubuntu info
╰─$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 20.04.3 LTSRelease: 20.04Codename: focal
Anyone knows how to fix this?