Skip to content

SadeghPouriyanZadeh/dev-env-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-env-setup

I use this repository to set up everything I need in a new development system or project environment
Linux Mint (debian based) is my development OS with Xfce as the desktop

OS-Related

oh-my-zsh

  1. Install zsh first:

    sudo apt update
    sudo apt install zsh
  2. Install oh-my-zsh using oh-my-zsh website installation command:

    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  3. Logout and login again to see the changes.

  4. Change the default shell to zsh:

    chsh -s $(which zsh)
  5. Change theme by editing ~/.zshrc file:

    nano ~/.zshrc
    # edit as below:
    ZSH_THEME="xiong-chiamiov-plus"
  6. relaunch terminal to see the changes.

git

  1. Install git using apt:

    sudo apt update  
    sudo apt install git
  2. Config name and email:

    git config --global user.name "SadeghPouriyanZadeh"
    git config --global user.email "[email protected]"

gitignore

  1. Save .gitignore file to home directory (~) as .gitignore

  2. Run git config --global core.excludesfile ~/.gitignore

vscode

  1. Install from their website:

  2. Sync into GitHub account

Or

  1. Open vscode settings using Ctrl + , and then settings.json

  2. Copy and save settings.json content into settings.json file of vscode settings

uv

  1. Install using the command from their website:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. reset the terminal to start uv:

     uv self update

Dev Env

conda/mamba

For CUDA-supported PyTorch projects.

  1. Download miniforge installer from their website:

    chmod +x Miniforge3-$(uname)-$(uname -m).sh
    bash Miniforge3-$(uname)-$(uname -m).sh
    # Say **yes** to the initialization question to activate ml env anywhere.
  2. Update:

    mamba update mamba
  3. Create a new environment using environment.yml file:

    Default environment name is ml.
    Change name field of environment.yml file before executing if you want.

    mamba env create -f environment.yml
  4. Activate the environment to access system-wide:

    mamba activate ml

uv

For any other python projects.

  1. Initialize in the project root directory:

    uv init

About

I use this repository to set up everything I need in a new development system or project environment

Topics

Resources

License

Stars

Watchers

Forks