Initial commit
This commit is contained in:
15
config/setup
Executable file
15
config/setup
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
for dotfiles in $SCRIPTDIR/*; do
|
||||
dotfile=${dotfiles##*/}
|
||||
if [[ $dotfile != "setup" ]]; then
|
||||
if [[ ! -a $HOME/.$dotfile ]]; then
|
||||
ln -s $SCRIPTDIR/$dotfile $HOME/.$dotfile
|
||||
echo $dotfile "symlinked to" $HOME/.$dotfile
|
||||
else
|
||||
echo "already exists:" $HOME/.$dotfile
|
||||
fi
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user