dotfiles/install.sh

41 lines
846 B
Bash
Executable file

#!/bin/sh
# run this function for files that go directily into the home directory
gohome() {
ln -sfv $PWD/$1 ~/
}
# run this function for files that go into the .config file
goconfig() {
ln -sfv $PWD/$1 ~/.config/
}
# run this function for files that go into the .local/bin file
gobin() {
ln -sfv $PWD/$1 ~/.local/bin/
}
echo "This script will make symbolic links to all the dotfiles."
echo "Be sure to be cd-ed in the directory where the dotfiles repo resides (where this script is located ofc)\n"
echo "Type \"y\" if you do so we can continue"
read choice
if [ "$choice" = "y" ]
then
gohome .zshrc
gohome .zprofile
gohome .doom.d
goconfig dunst
goconfig foot
goconfig sway
goconfig swaylock
goconfig i3status-rust
goconfig nvim
goconfig ncmpcpp
goconfig lf
gobin bin/dmenukaomoji
gobin bin/toggle
gobin bin/startsway
fi