mirror of
https://github.com/bgrolleman/dotfiles.git
synced 2025-12-06 05:45:24 +01:00
29 lines
450 B
Bash
Executable File
29 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Simple shell script to setup symlinks
|
|
#
|
|
checkdir() {
|
|
echo "Checking Directory $1"
|
|
if [ ! -d "$1" ]; then
|
|
mkdir "$1"
|
|
fi
|
|
}
|
|
link() {
|
|
echo "Linking $1 to $2"
|
|
if [ ! -e "$1" ]; then
|
|
ln -s "$2" "$1"
|
|
fi
|
|
}
|
|
configlink() {
|
|
link ~/.config/$1 ~/dotfiles/$1
|
|
}
|
|
|
|
checkdir ~/.config
|
|
link ~/.dotfiles ~/dotfiles
|
|
link ~/.profile ~/dotfiles/profile
|
|
link ~/.config/i3 ~/dotfiles/i3
|
|
|
|
configlink tmux
|
|
configlink nvim
|
|
configlink kitty
|