Skip to content

Commit

Permalink
Merge pull request yadm-dev#38 from ParaplegicRacehorse/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLocehiliosan committed Jan 12, 2017
2 parents b44737b + d040bce commit 2c6696a
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion _docs/020_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,60 @@ yaourt -S yadm
emerge -atv app-admin/yadm
```

## Other
## Download

You *can* simply download the **yadm** script and put it into your `$PATH`. Something like this:

```
curl -fLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x /usr/local/bin/yadm
```

Of course, you can change the file paths above to be appropriate for your `$PATH` and situation.

## Clone

You might wish to clone the **yadm** project and symlink `yadm` into your
`$PATH`.

```
git clone https://github.com/TheLocehiliosan/yadm.git ~/.yadm-project
ln -s ~/.yadm-project/yadm ~/bin/yadm
```

Now you can pull the latest updates to **yadm** using Git. Again, adjust the
file paths above to be appropriate for your `$PATH` and situation.

## Submodule

If you are comfortable with how Git submodules work, another option is to add
the **yadm** project as a submodule and symlink `yadm` into your `$PATH`.

```
cd ~
yadm submodule add https://github.com/TheLocehiliosan/yadm.git .yadm-project
yadm submodule update --init --recursive
ln -s ~/.yadm-project/yadm ~/bin/yadm
yadm add .yadm-project .gitmodules bin/yadm
yadm commit
```
When using submodules, you need to initialize them each time you do a fresh
`clone` of your dotfiles.

```
yadm submodule update --init --recursive
```

Updating to a newer version of **yadm** would use commands similar to this.

```
cd ~/.yadm-project
git pull
yadm add ~/.yadm-project
yadm commit
```

Again, adjust the file paths above to be appropriate for your `$PATH` and
situation.

You can find more information about Git submodules by reading the [git-submodule](https://git-scm.com/docs/git-submodule)
man page.

0 comments on commit 2c6696a

Please sign in to comment.