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

Here is the workflow for installing dotfiles using the dotdrop on a server:

$ git clone --recurse-submodules -j8 https://github.com/codeslake/dotfiles.git
$ cd dotfiles
$ sudo pip3 install -r dotdrop/requirements.txt --user
$ ./dotdrop/bootstrap.sh
# for clusters
$ ./dotdrop.sh install -p cluster
# for macOS
$ ./dotdrop.sh install -p mac
$ sh ~/.ssh/permission.sh
  • 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 defualt 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.
  • Useful plugins
    • Install VundleVim with git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim.
    • Install autosuggestion plugin for zsh with git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions.
    • Install syntax highlighting plugin for zsh with git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting.
    • Install my zsh custom theme with git clone https://github.com/codeslake/spaceship-prompt.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/spaceship-prompt.

Leave a comment