Skip to content

Instantly share code, notes, and snippets.

View Oriely's full-sized avatar

Sigve Lockertsen Oriely

View GitHub Profile
@Oriely
Oriely / dotfiles-setup.sh
Created June 25, 2025 14:30
dotfiles-setup.sh
git clone --bare hhttps://github.com/Oriely/dotfiles.git $HOME/.dotfiles
function config {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfiles-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";