dotfiles/install.sh

68 lines
1.2 KiB
Bash
Raw Normal View History

2020-08-01 12:05:15 +00:00
#!/bin/sh
2020-09-24 16:46:14 +00:00
# run this function for files that go directily into the home directory
2020-08-01 12:05:15 +00:00
gohome() {
2021-02-13 12:49:36 +00:00
ln -sfv $PWD/$1 ~/
2020-08-01 12:05:15 +00:00
}
# run this function for files that go into the .config file
goconfig() {
2021-02-13 12:49:36 +00:00
ln -sfv $PWD/$1 ~/.config/
2020-08-01 12:05:15 +00:00
}
2021-02-13 12:49:36 +00:00
# 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
echo "Now, are what are you installing this on?"
echo "1 - desktop"
echo "2 - laptop"
read device
while :
do
case $device in
1)
echo "installing desktop specific bits"
# just plop desktop configs here idk
;;
2)
echo "installing laptop specific bits"
# or plop lapop configs here
break
;;
*)
echo "wot?"
;;
esac
done
2022-09-20 16:21:41 +00:00
gohome .zshrc
gohome .zprofile
2021-03-23 07:55:41 +00:00
gohome .doom.d
gohome .vim
2021-02-13 12:49:36 +00:00
goconfig dunst
2022-09-12 15:58:28 +00:00
goconfig foot
goconfig sway
goconfig swaylock
2022-09-12 15:58:28 +00:00
goconfig i3status-rust
2021-02-13 12:49:36 +00:00
goconfig nvim
2021-03-23 07:55:41 +00:00
goconfig ncmpcpp
2021-02-13 12:49:36 +00:00
goconfig lf
2020-08-01 12:05:15 +00:00
2021-02-13 12:49:36 +00:00
gobin bin/dmenukaomoji
gobin bin/toggle
2023-02-27 09:56:50 +00:00
gobin bin/startsway
2021-02-13 12:49:36 +00:00
fi