mirror of
https://github.com/bgrolleman/dotfiles.git
synced 2025-12-06 05:45:24 +01:00
Add readme and setup script
This commit is contained in:
2
README
Normal file
2
README
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
I have been hanging on Windows too long while creating my Youtube videos, now that I'm switching back to Linux my dotfiles are all over or even lost. Time to fix that.
|
||||||
|
|
||||||
21
setup.sh
Executable file
21
setup.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/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
|
||||||
|
}
|
||||||
|
|
||||||
|
checkdir ~/.config
|
||||||
|
link ~/.dotfiles ~/dotfiles
|
||||||
|
link ~/.config/tmux ~/dotfiles/tmux
|
||||||
|
link ~/.config/nvim ~/dotfiles/nvim
|
||||||
Reference in New Issue
Block a user