mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 10:58:14 +00:00
Update bootstrap to remove bash files
This commit is contained in:
13
bootstrap.sh
13
bootstrap.sh
@@ -1,13 +1,24 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
which git > /dev/null
|
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
|
||||||
git clone https://github.com/nikdoof/dotfiles.git $HOME/.dotfiles > /dev/null
|
git clone https://github.com/nikdoof/dotfiles.git $HOME/.dotfiles > /dev/null
|
||||||
|
|
||||||
|
# Clean bash files
|
||||||
|
for file in .bash_profile .bashrc .bash_logout; do
|
||||||
|
if [ -e $file ]; then
|
||||||
|
rm -f $file
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
cd $HOME/.dotfiles/
|
cd $HOME/.dotfiles/
|
||||||
|
|
||||||
|
# Stow the default packages
|
||||||
for package in bin bash; do
|
for package in bin bash; do
|
||||||
echo "Stowing ${package}"
|
echo "Stowing ${package}"
|
||||||
./bin/bin/stowage $package
|
./bin/bin/stowage $package
|
||||||
|
|||||||
Reference in New Issue
Block a user