mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 09:42:27 +00:00
27 lines
739 B
Bash
Executable File
27 lines
739 B
Bash
Executable File
#!/bin/bash
|
|
|
|
which git >/dev/null 2>&1
|
|
if [ $? -ne 0 ]; then
|
|
echo "Git isn't installed."
|
|
exit
|
|
fi
|
|
|
|
# Clone dotfiles
|
|
git clone git@github.com:nikdoof/dotfiles.git $HOME/.dotfiles >/dev/null
|
|
git clone git@github.com:nikdoof/dotfiles-private.git $HOME/.dotfiles-private >/dev/null
|
|
|
|
# Stow the default public packages
|
|
for package in bin shell-common bash zsh ssh; do
|
|
echo "Stowing ${package}"
|
|
$HOME/.dotfiles/bin/bin/stowage --clobber install $package
|
|
done
|
|
|
|
# Stow the default private packages
|
|
for package in ssh; do
|
|
echo "Stowing ${package}"
|
|
$HOME/.dotfiles/bin/bin/stowage -r $HOME/.dotfiles-private --clobber install $package
|
|
done
|
|
|
|
echo ""
|
|
echo "Done, either source ~/.bash_profile / ~/.zshrc or restart your shell."
|