#!/usr/bin/bash # Dot - manage your dotfiles using stow, # run it outside of the folder/file you want to back up # $ dotstow file-or-program # This program was made by joelchrono12 # Set up your dotfiles folder STOW_DIR=$HOME/dotfiles/stow_home # $1 is the program you chose DIR=$(pwd | cut -d '/' -f4-) NEW_DIR=$STOW_DIR/$1/$DIR mkdir -pv $NEW_DIR mv -v $1 $NEW_DIR cd $STOW_DIR stow -vt ~ $1