Skip to content

πŸ—ƒοΈ Dotfiles to configure my shell environment for git, zsh, nvm, pyenv, docker (compose)

License

Notifications You must be signed in to change notification settings

klaasnicolaas/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

87 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

What is this?

This is my dotfiles configuration files.

How to install configuration?

git clone https://github.com/klaasnicolaas/dotfiles.git
cd dotfiles && bash install.sh

Installed packages

The following platforms are installed and set up by default with the bash script:

Manual installations

After installation, there are still a few things I always do manually.

This is the case for:

  • Python (via pyenv)
  • Git config (name and email)
  • Node.JS/NPM (via nvm)
  • Poetry
  • Ruby (via rbenv)
  • PHP

Install a python version

The use of pyenv is recommended to manage multiple python versions, with the grep command we can narrow down the list with newer versions.

pyenv install --list | grep -E "^\s*3\.(11|12|13)(\..*|-dev.*)"
pyenv install 3.12.4
pyenv global 3.12.4

Setup Github account

git config --global user.name "Klaas Schoute"
git config --global user.email "hello@example.com"

Setup Node.JS/NPM

Version 20 is currently the LTS version.

nvm install 20
nvm use 20
nvm alias default 20

Install Poetry

Note: This can only after installing python.

bash components/poetry.sh

Install Ruby

Installs rbenv (with ruby-build) for OhMyZsh on Ubuntu:

bash components/ruby.sh

Install PHP

Instal PHP 8.3 and all the extensions:

# πŸ‘‡ install software-properties-common
sudo apt -y install software-properties-common

# πŸ‘‡ use add-apt-repository command to install the PPA
sudo add-apt-repository ppa:ondrej/php

# πŸ‘‡ refresh the package manager
sudo apt-get update

# πŸ‘‡ install latest PHP version
sudo apt -y install php8.3

# πŸ‘‡ install all the extensions
sudo apt install php8.3-{bcmath,xml,xmlrpc,fpm,mysql,zip,intl,ldap,gd,cli,bz2,curl,common,mbstring,pgsql,opcache,soap,cgi,imagick,readline,sqlite3}

Remove packages from older PHP versions:

sudo apt-get purge 'php8.2*'

To switch between PHP versions:

sudo update-alternatives --config php

Links

https://realpython.com/intro-to-pyenv/
https://docs.docker.com/engine/install/ubuntu/

About

πŸ—ƒοΈ Dotfiles to configure my shell environment for git, zsh, nvm, pyenv, docker (compose)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages