Skip to content

Instantly share code, notes, and snippets.

@OmegaRogue
Last active May 23, 2020 20:28
Show Gist options
  • Save OmegaRogue/6fd027f2ca88aa4f9d984ea4c779e9b4 to your computer and use it in GitHub Desktop.
Save OmegaRogue/6fd027f2ca88aa4f9d984ea4c779e9b4 to your computer and use it in GitHub Desktop.
Dotfile follow script
which git >/dev/null && ([[ -d ~/dotfiles ]] && \
(echo "Updating dotfiles on %h ..." && cd ~/dotfiles && git pull && ./install >/dev/null) || \
(echo "Installing dotfiles on %h ..." && git clone https://github.com/OmegaRogue/dotfiles-local -b pi && ./dotfiles/install >/dev/null))
which git >/dev/null && ([[ -d ~/dotfiles ]] && \
(echo "Updating dotfiles on %h ..." && cd ~/dotfiles && git pull && ./install >/dev/null) || \
(echo "Installing dotfiles on %h ..." && git clone https://github.com/OmegaRogue/dotfiles && ./dotfiles/install >/dev/null))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment