mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-05-19 08:26:59 +00:00
Install script uses functions
This commit is contained in:
parent
8550832516
commit
c0ae64ccfb
@ -24,6 +24,22 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Check emacs setup
|
||||||
|
function emacs {
|
||||||
|
if ! [ -d ~/.emacs.d ]; then
|
||||||
|
echo Installing emacs config
|
||||||
|
cd ~
|
||||||
|
git clone git@github.com:AquaMorph/.emacs.d.git
|
||||||
|
else
|
||||||
|
echo Checking for emacs config updates
|
||||||
|
cd ~/.emacs.d
|
||||||
|
git pull
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check managed dotfiles
|
||||||
|
function dotfiles {
|
||||||
echo Setting up dotfiles...
|
echo Setting up dotfiles...
|
||||||
|
|
||||||
# Loop through config files
|
# Loop through config files
|
||||||
@ -58,3 +74,7 @@ for (( i=0; i<${#files[@]} ; i+=3 )) ; do
|
|||||||
echo Creating symbolic link from ${files[i]} to ${files[i+1]}
|
echo Creating symbolic link from ${files[i]} to ${files[i+1]}
|
||||||
$pre ln -sf ${files[i]} ${files[i+1]}
|
$pre ln -sf ${files[i]} ${files[i+1]}
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
dotfiles
|
||||||
|
emacs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user