Skip to content

Commit 26107cb

Browse files
committed
Re-order README.md sections
1 parent 427df1f commit 26107cb

File tree

1 file changed

+53
-53
lines changed

1 file changed

+53
-53
lines changed

README.md

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1111
## Table of Contents
1212

13+
- [Included Scripts](#included-scripts)
14+
- [Useful git aliases](#useful-git-aliases)
1315
- [Installing](#installing)
1416
- [Pre-requisites](#pre-requisites)
1517
- [Antigen](#antigen)
1618
- [oh-my-zsh](#oh-my-zsh)
1719
- [zgen](#zgen)
1820
- [Bash / Manual Installation](#bash--manual-installation)
19-
- [Included Scripts](#included-scripts)
20-
- [Useful git aliases](#useful-git-aliases)
2121
- [Other useful git stuff](#other-useful-git-stuff)
2222
- [Articles / Blog posts / Books](#articles--blog-posts--books)
2323
- [External Git Utilities](#external-git-utilities)
@@ -36,57 +36,6 @@ This collection doesn't actually require ZSH, but packaging it as a ZSH plugin m
3636

3737
If you wrote one of these scripts and want it removed from this collection, please either make a PR and/or file an issue against the repo and I will remove it.
3838

39-
## Installing
40-
41-
### Pre-requisites
42-
43-
* A relatively recent version of `git`. The version of `git` Apple includes in macOS is very stale. You should really `brew install git` to get the current version if you're on macOS - if not for features, for security updates.
44-
* Python 3+
45-
* Ruby 2.2+
46-
47-
### Antigen
48-
49-
If you're using [Antigen](https://github.com/zsh-users/antigen):
50-
51-
1. Add `antigen bundle unixorn/git-extra-commands` to your `.zshrc` where you've listed your other plugins.
52-
2. Close and reopen your Terminal/iTerm window to **refresh context** and use the plugin. Alternatively, you can run `antigen bundle unixorn/git-extra-commands` in a running shell to have `antigen` load the new plugin.
53-
54-
### oh-my-zsh
55-
56-
If you're using [oh-my-zsh](github.com/robbyrussell/oh-my-zsh):
57-
58-
1. In the command line, change to _oh-my-zsh_'s custom plugin directory :
59-
60-
`cd ~/.oh-my-zsh/custom/plugins/`
61-
62-
2. Clone the repository into a new `git-extra-commands` directory:
63-
64-
`git clone https://github.com/unixorn/git-extra-commands.git git-extra-commands`
65-
66-
3. Edit your `~/.zshrc` and add `git-extra-commands` – same as clone directory – to the list of plugins to enable:
67-
68-
`plugins=( ... git-extra-commands )`
69-
70-
4. Then, restart your terminal application to **refresh context** and use the plugin. Alternatively, you can source your current shell configuration:
71-
72-
`source ~/.zshrc`
73-
74-
### zgen
75-
76-
If you're using [zgen](https://github.com/tarjoilija/zgen):
77-
78-
1. Add `zgen load unixorn/git-extra-commands` to your `.zshrc` along with your other `zgen load` commands.
79-
2. `zgen reset && zgen save`
80-
81-
### Bash / Manual Installation
82-
83-
Nothing here actually requires you to use ZSH or zgen, that's just a convenient distribution method for anyone using a ZSH framework.
84-
85-
If you aren't using any ZSH frameworks, or if you're a `bash` user, do the following steps:
86-
87-
1. `git clone` this repository
88-
2. Add `cloneDirectory/bin` to your `$PATH`.
89-
9039
## Included Scripts
9140

9241
| Script | Original Source | Description |
@@ -187,6 +136,57 @@ Here are some helpful aliases for your `~/.gitconfig`
187136
| `unpushed = log @{u}..` | Show which commits have not been pushed to the tracking branch and are safe to amend/rebase. |
188137
| `work-in-progress = rebase -i @{u}` | Starts an interactive rebase of all the commits you haven't pushed yet. Handy for collapsing a bunch of work-in-progress snapshots into logical commits before pushing, without having to worry about accidentally squashing a commit someone else has already referred to. |
189138

139+
## Installing
140+
141+
### Pre-requisites
142+
143+
* A relatively recent version of `git`. The version of `git` Apple includes in macOS is very stale. You should really `brew install git` to get the current version if you're on macOS - if not for features, for security updates.
144+
* Python 3+
145+
* Ruby 2.2+
146+
147+
### Antigen
148+
149+
If you're using [Antigen](https://github.com/zsh-users/antigen):
150+
151+
1. Add `antigen bundle unixorn/git-extra-commands` to your `.zshrc` where you've listed your other plugins.
152+
2. Close and reopen your Terminal/iTerm window to **refresh context** and use the plugin. Alternatively, you can run `antigen bundle unixorn/git-extra-commands` in a running shell to have `antigen` load the new plugin.
153+
154+
### oh-my-zsh
155+
156+
If you're using [oh-my-zsh](github.com/robbyrussell/oh-my-zsh):
157+
158+
1. In the command line, change to _oh-my-zsh_'s custom plugin directory :
159+
160+
`cd ~/.oh-my-zsh/custom/plugins/`
161+
162+
2. Clone the repository into a new `git-extra-commands` directory:
163+
164+
`git clone https://github.com/unixorn/git-extra-commands.git git-extra-commands`
165+
166+
3. Edit your `~/.zshrc` and add `git-extra-commands` – same as clone directory – to the list of plugins to enable:
167+
168+
`plugins=( ... git-extra-commands )`
169+
170+
4. Then, restart your terminal application to **refresh context** and use the plugin. Alternatively, you can source your current shell configuration:
171+
172+
`source ~/.zshrc`
173+
174+
### zgen
175+
176+
If you're using [zgen](https://github.com/tarjoilija/zgen):
177+
178+
1. Add `zgen load unixorn/git-extra-commands` to your `.zshrc` along with your other `zgen load` commands.
179+
2. `zgen reset && zgen save`
180+
181+
### Bash / Manual Installation
182+
183+
Nothing here actually requires you to use ZSH or zgen, that's just a convenient distribution method for anyone using a ZSH framework.
184+
185+
If you aren't using any ZSH frameworks, or if you're a `bash` user, do the following steps:
186+
187+
1. `git clone` this repository
188+
2. Add `cloneDirectory/bin` to your `$PATH`.
189+
190190
## Other useful git stuff
191191

192192
### Articles / Blog posts / Books

0 commit comments

Comments
 (0)