These are my dotfiles, just a test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
395 B

#!/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