Browse Source

Rolling in an auto updater to the zshrc and the bootstrap script.

master
Drew Short 9 years ago
parent
commit
c6c642a427
  1. 10
      bootstrap.sh
  2. 4
      zshrc

10
bootstrap.sh

@ -30,3 +30,13 @@ link "$HOME" ".gitconfig" "gitconfig"
# Configure .zshrc # Configure .zshrc
link "$HOME" ".zshrc" "zshrc" link "$HOME" ".zshrc" "zshrc"
# Create an auto updater for the dotfiles
if [ ! -f "$HOME/.update_dotfiles.sh" ]; then
echo "#!/usr/bin/env sh" > $HOME/.update_dotfiles.sh
echo "echo 'Updating dotfiles'" >> $HOME/.update_dotfiles.sh
echo "cd $PWD" >> $HOME/.update_dotfiles.sh
echo "git checkout master" >> $HOME/.update_dotfiles.sh
echo "git pull" >> $HOME/.update_dotfiles.sh
chmod +x $HOME/.update_dotfiles.sh
fi

4
zshrc

@ -26,3 +26,7 @@ export EDITOR='vim'
# Don't use the embedded shell time. Use GNU time. # Don't use the embedded shell time. Use GNU time.
alias time="/usr/bin/time" alias time="/usr/bin/time"
if [ -f "$HOME/.update_dotfiles.sh" ]; then
/usr/bin/env sh $HOME/.update_dotfiles.sh
fi
Loading…
Cancel
Save