Skip to content

klaasnicolaas/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

110 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)
  • Node.JS/NPM (via nvm)
  • Pipx (via script)
  • Poetry (via script)
  • Ruby (via script)
  • PHP

Optional components

The following components can be installed separately using the scripts in the components/ directory:

1. Pipx

Install pipx for managing Python CLI tools in isolated environments.

Requirements: pyenv with a Python version installed

bash components/pipx.sh

2. Poetry

Install Poetry via pipx for Python dependency management.

Requirements: pipx must be installed first

bash components/poetry.sh

3. Ruby

Install rbenv with ruby-build for managing Ruby versions.

bash components/ruby.sh

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

This will set your global git username and email. The install script will also prompt you for this information.

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

Setup Node.JS/NPM

Version 20 is currently the LTS version.

nvm install 20
nvm use 20
nvm alias default 20

Install PHP

Instal PHP 8.4 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.4

# 👇 install all the extensions
sudo apt install php8.4-{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

 
 
 

Contributors

Languages