This post describes how I use dotdrop for managing my dotfiles (.zshrc, .vimrc, .tmux.conf, etc.)

For a brand new mac, install homebrew and conda first:

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ eval "$(/opt/homebrew/bin/brew shellenv)"
$ brew install --cask miniconda
$ conda init "$(which $SHELL)"
$ conda create --name dotfile python=3.11; conda activate dotfile

For ubuntu, install conda:

$ mkdir -p ~/miniconda3
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
$ bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
$ rm -rf ~/miniconda3/miniconda.sh
$ ~/miniconda3/bin/conda init bash
$ conda create --name dotfile python=3.11; conda activate dotfile

The following installs dotfiles using the dotdrop:

$ git clone --recurse-submodules -j8 git@github.com:codeslake/dotfiles.git
$ cd dotfiles
$ conda activate dotfile
$ pip3 install -r dotdrop/requirements.txt --user
$ ./dotdrop/bootstrap.sh
$ ./dotdrop.sh install -p PROFILE_NAME
  • Tips
    • Install pip3 with sudo apt install python3-pip.
    • If there is an error for docopt, try sudo apt-get install python3-docopt. For macOS, do pip install docopt (use python3 installed from brew or conda. The default python3 does not find docopt installed from the default pip3).
    • If the error is about ruamel, try sudo pip3 install ruamel_yaml.
    • If the error is about python-magic, try sudo apt install python3-magic.

Leave a comment