~install.sh to use gnu stow now as well as a few more changes
No files dependency
This commit is contained in:
24
install.sh
24
install.sh
@@ -1,18 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
dir=~/Dotfiles;
|
folders=`find . -maxdepth 1 -type 'd' -not -name '.git' -not -name '.'`;
|
||||||
files=`cat $dir/files`;
|
|
||||||
|
|
||||||
# Symlink profiles
|
# Symlink profiles
|
||||||
for file in $files; do
|
for pkg in $folders; do
|
||||||
echo "Creating symlink for " + $file;
|
echo "Stowing " $pkg;
|
||||||
ln -s $dir/$file ~/.$file;
|
stow $pkg
|
||||||
done
|
done
|
||||||
|
|
||||||
## Symlink to .config
|
|
||||||
ln -s $dir/rofi.conf ~/.config/rofi/config
|
|
||||||
ln -s $dir/kitty.conf ~/.config/kitty/config
|
|
||||||
|
|
||||||
# Generate folders
|
# Generate folders
|
||||||
mkdir ~/Text;
|
mkdir ~/Text;
|
||||||
mkdir ~/Code;
|
mkdir ~/Code;
|
||||||
@@ -21,18 +16,9 @@ mkdir ~/Code/Projects;
|
|||||||
mkdir ~/Code/Templates;
|
mkdir ~/Code/Templates;
|
||||||
mkdir ~/School;
|
mkdir ~/School;
|
||||||
|
|
||||||
touch ~/Text/notes.org;
|
|
||||||
touch ~/Text/todo.org;
|
|
||||||
touch ~/Text/calendar.org;
|
|
||||||
|
|
||||||
# get templates
|
# get templates
|
||||||
declare -a templates=("CTemplate" "CPPTemplate" "PythonTemplate"
|
declare -a templates=("CTemplate" "CPPTemplate" "PythonTemplate"
|
||||||
"NodeTemplate" "ArduinoTemplate");
|
"NodeTemplate" "ArduinoTemplate");
|
||||||
for template in ${templates[@]}; do
|
for template in ${templates[@]}; do
|
||||||
git clone https://github.com/Oreodave/$template ~/Code/Templates/$template;
|
git clone https://github.com/odavep/$template ~/Code/Templates/$template;
|
||||||
done
|
done
|
||||||
|
|
||||||
# get doom emacs
|
|
||||||
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
|
|
||||||
~/.emacs.d/bin/doom install;
|
|
||||||
~/.emacs.d/bin/doom sync;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user