Skip to content

appleternity/LinuxSetting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinuxSetting

Something worth trying

Oh-My-Posh

  1. https://ohmyposh.dev/
  2. https://github.com/jandedobbeleer/oh-my-posh

Nerd Fonts

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"
},

Reference:

https://www.nerdfonts.com/

Change default shell to zsh without root

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

Reference

  1. https://medium.com/@ritvikmarwaha/change-your-shell-to-zsh-on-a-remote-server-with-or-without-root-access-c4339804caab

Issue of Conda Python Reading .local

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

Reference

  1. https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#saving-environment-variables
  2. https://stackoverflow.com/questions/62352699/conda-uses-local-packages

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published