Configure script leveraging stow
This commit is contained in:
commit
7ebd75a47e
1 changed files with 29 additions and 0 deletions
29
configure
vendored
Executable file
29
configure
vendored
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
#shopt -s extglob # For REGEXP
|
||||
|
||||
[[ $PWD == /home/$USER/dotfiles ]] || \
|
||||
echo "!!! WE'RE NOT IN >>>/home/$USER/dotfile/<<< !!!"
|
||||
|
||||
if [[ -z $1 ]]
|
||||
then
|
||||
echo "Usage: $0 <program name> "
|
||||
echo ""
|
||||
echo "Give a program name and it will install its configuration. There are "
|
||||
echo "available configurations for: "
|
||||
ls -d ~/dotfiles/*/
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
"emacs" )
|
||||
echo "Installing emacs config"
|
||||
git clone https://github.com/syl20bnr/spacemacs.git ~/.emacs.d
|
||||
stow -v emacs
|
||||
exit 0
|
||||
;;
|
||||
* )
|
||||
echo "$1 cannot be installed…"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in a new issue