Created
May 26, 2025 14:33
-
-
Save pduchnovsky/98f58bc9d3cb871b99882b6f592a075a to your computer and use it in GitHub Desktop.
servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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