Oh-My-Posh
I am using "UbuntuMono NF" one. (https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Ubuntu.zip)
This is the setting for my own WSL
.
"font": {
"face": "UbuntuMono NF",
"size": 15,
"weight": "normal"
},
Add the following to the ~/.bashrc
or ~/.profile
.
if [[ ($- == *i*) && ($SSH_TTY) ]];
then
export SHELL=bin/zsh
exec bin/zsh -l
fi
The bin/zsh
might need to change if you install that from source or conda.
if [[ ($- == *i*) && ($SSH_TTY) ]];
then
export SHELL=/dgxhome/czh5679/anaconda3/bin/zsh
exec /dgxhome/czh5679/anaconda3/bin/zsh -l
fi
Better Solution
conda env config vars set PYTHONUSERBASE="intentionally-disabled" --name <env_name>
Old Solution
Locate the directory for the conda environment in your terminal window by running in the terminal echo $CONDA_PREFIX
.
Enter that directory and create these subdirectories and files:
cd $CONDA_PREFIX
mkdir -p ./etc/conda/activate.d
mkdir -p ./etc/conda/deactivate.d
touch ./etc/conda/activate.d/env_vars.sh
touch ./etc/conda/deactivate.d/env_vars.sh
Edit ./etc/conda/activate.d/disable-PYTHONUSERBASE.sh
as follows:
#!/bin/sh
export PYTHONUSERBASE="intentionally-disabled"
Edit ./etc/conda/deactivate.d/disable-PYTHONUSERBASE.sh
as follows:
#!/bin/sh
unset PYTHONUSERBASE