#!/bin/sh # # Install my dotfiles. # STOW=$(which stow) if [ -z "$STOW" ]; then STOW=./stow.sh fi git submodule update --init --recursive # if these aren't links, move them out of the way? for f in ~/.zshrc ~/.profile; do if [ -f $f ]; then mv $f $f.orig fi done # rm -f $HOME/.zshrc $HOME/.profile >/dev/null 2>&1 # install all dotfiles #find * -maxdepth 0 -type d | xargs -I{} $STOW -t "$HOME" {} # install general dotfiles for dir in \ git \ nvim \ sh \ ssh \ tmux \ zsh do $STOW -t ~/ $dir done