Files
dotfiles/install.sh
AChavali a934c6b7d2 ~directory structure
Instead of having a really distributed and sparse code structure over
the /home/user directory, I've put all code in the code directory.

The directory structure is now like this.

~/Programming -> ~/Code/Learning
~/Projects -> ~/Code/Projects;
~/Projects/Templates -> ~/Code/Templates;
2020-02-09 13:06:28 +00:00

34 lines
757 B
Bash

#!/bin/bash
dir=~/Dotfiles;
files=`cat $dir/files`;
# Symlink profiles
for file in $files; do
echo "Creating symlink for " + $file;
ln -s $dir/$file ~/.$file;
done
# Generate folders
mkdir ~/Text;
mkdir ~/Code;
mkdir ~/Code/Learning;
mkdir ~/Code/Projects;
mkdir ~/Code/Templates;
mkdir ~/School;
touch ~/Text/notes.org;
touch ~/Text/todo.org;
touch ~/Text/calendar.org;
# get templates
declare -a templates=("CTemplate" "CPPTemplate" "PythonTemplate" "NodeTemplate" "ArduinoTemplate");
for template in ${templates[@]}; do
git clone https://github.com/Oreodave/$template ~/Code/Templates/$template;
done
# get doom emacs
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
~/.emacs.d/bin/doom install;
~/.emacs.d/bin/doom refresh;