Update README.org

This commit is contained in:
2020-06-26 05:23:10 +00:00
parent f5ade47b2e
commit 8836477762

View File

@@ -1,9 +1,17 @@
* Installation * 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 #+BEGIN_SRC sh
mkdir $HOME/.git_home wget -O - https://gitlab.maxregan.me/max/configs/-/raw/master/.mgr_config/install.sh 2> /dev/null | bash
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
#+END_SRC #+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.