Skip to content

Instantly share code, notes, and snippets.

@pduchnovsky
Created May 26, 2025 14:33
Show Gist options
  • Save pduchnovsky/98f58bc9d3cb871b99882b6f592a075a to your computer and use it in GitHub Desktop.
Save pduchnovsky/98f58bc9d3cb871b99882b6f592a075a to your computer and use it in GitHub Desktop.
servers
#!/usr/bin/env bash
set -euo pipefail
REPO="[email protected]:pduchnovsky/.dotfiles-servers.git"
DIR="$HOME/.dotfiles"
[[ -f ~/.bashrc ]] || echo '[[ -f ~/.bash_aliases ]] && . ~/.bash_aliases' > ~/.bashrc
git clone --bare "$REPO" "$DIR" || true
cfg() { git --git-dir="$DIR" --work-tree="$HOME" "$@"; }
cfg config --local status.showUntrackedFiles no
cfg config --local user.email [email protected]
cfg config --local user.name pduchnovsky
cfg pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment