From 8836477762705608c917af9ae13ff7a6e57ba4ec Mon Sep 17 00:00:00 2001 From: Max Regan Date: Fri, 26 Jun 2020 05:23:10 +0000 Subject: [PATCH] Update README.org --- .mgr_config/README.org | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.mgr_config/README.org b/.mgr_config/README.org index dfa7d0f..efc381c 100644 --- a/.mgr_config/README.org +++ b/.mgr_config/README.org @@ -1,9 +1,17 @@ * Installation +The ol' wget-bash. This will end up creating a =~/.git_home= directory, and should print and abort if there are conflicting files. + #+BEGIN_SRC sh - mkdir $HOME/.git_home - alias git-home='git --git-dir=$HOME/.git_home/ --work-tree=$HOME' - git init --bare ~/.git_home/ - git-home remote add origin https://gitlab.maxregan.me/max/configs.git - git-home checkout -b master origin/master + wget -O - https://gitlab.maxregan.me/max/configs/-/raw/master/.mgr_config/install.sh 2> /dev/null | bash #+END_SRC + +or, if you prefer to curl-bash + +#+BEGIN_SRC sh + curl https://gitlab.maxregan.me/max/configs/-/raw/master/.mgr_config/install.sh | bash +#+END_SRC + +* Usage + +=git-home= is the magic command that will use the home directory as the worktree and =~/.git_home= as the git directory. \ No newline at end of file