Skip to content

Commit f99a5b8

Browse files
committed
Added an installer
1 parent 93f42fa commit f99a5b8

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,17 @@ For more examples, see the [manual page](mgitstatus.1.md).
7373

7474
mgitstatus requires a POSIX compliant shell. Bash will do fine.
7575

76-
1. Clone this git repo
77-
2. Copy `mgitstatus` somewhere in your PATH
76+
The following steps will install mgitstatus:
7877

79-
Or follow these instructions:
78+
# Clone the repo
79+
$ git clone git@github.com:fboender/multi-git-status.git
80+
$ cd multi-git-status
8081

81-
$ curl -s -o mgitstatus https://raw.githubusercontent.com/fboender/multi-git-status/master/mgitstatus
82-
$ chmod 755 mgitstatus
83-
$ sudo mv mgitstatus /usr/local/bin/
82+
# Install globally (all users)
83+
$ sudo ./install.sh
84+
85+
# Install locally (only your user)
86+
$ PREFIX=~/.local ./install.sh
8487

8588
# License
8689

install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
PREFIX=${PREFIX:=/usr/local}
4+
5+
install -d ${PREFIX}/bin
6+
install -d ${PREFIX}/man/man1
7+
install mgitstatus ${PREFIX}/bin/
8+
install mgitstatus.1 ${PREFIX}/man/man1/

0 commit comments

Comments
 (0)