mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 09:42:27 +00:00
[misc] Cleanup bootstrap script
This commit is contained in:
12
bootstrap.sh
12
bootstrap.sh
@@ -1,18 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
which git > /dev/null 2>&1
|
which git >/dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Git isn't installed."
|
echo "Git isn't installed."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clone dotfiles
|
# Clone dotfiles
|
||||||
git clone https://github.com/nikdoof/dotfiles.git $HOME/.dotfiles > /dev/null
|
git clone https://github.com/nikdoof/dotfiles.git $HOME/.dotfiles >/dev/null
|
||||||
|
|
||||||
# Stow the default packages
|
# Stow the default packages
|
||||||
for package in bin shell-common bash zsh; do
|
for package in bin shell-common bash zsh; do
|
||||||
echo "Stowing ${package}"
|
echo "Stowing ${package}"
|
||||||
$HOME/.dotfiles/bin/bin/stowage --clobber install $package
|
$HOME/.dotfiles/bin/bin/stowage --clobber install $package
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
echo "Done, either source ~/.bash_profile / ~/.zshrc or restart your shell."
|
echo "Done, either source ~/.bash_profile / ~/.zshrc or restart your shell."
|
||||||
Reference in New Issue
Block a user