This may work on a full Ubuntu installation, but not on a fresh install of WSL Ubuntu.
WSL Ubuntu doesn’t provide gedit (GNOME Desktop (graphical) text editor). nano (a basic text editor included in WSL Ubuntu) can be used in a WSL terminal. “source .bashrc” should be “source ~/.bashrc” on the default configuration of WSL.
2 Likes