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.sh
alias 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 workspace
if [ "$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 -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
Anyone knows how to fix this?
/home/username
where username = your actual username. Example:/home/taeil