mirror of
https://github.com/bgrolleman/dotfiles.git
synced 2026-05-10 17:11:14 +02:00
Add readme and setup script
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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