mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 06:04:25 +01:00
20
Readme.md
20
Readme.md
@@ -11,21 +11,31 @@ To enable clone or fetch or pull using `git <clone|fetch|pull> pear:<public key>
|
||||
|
||||
## Installation
|
||||
|
||||
It is necessary for corresponding binaries to be in `$PATH`, thus gitpear needs to be installed globally
|
||||
It is necessary for corresponding binaries to be in `$PATH`, thus gitpear needs to be installed globally.
|
||||
NOTE: application home directory will be created in `~/.gitpear` - this may require `sudo`.
|
||||
|
||||
### From remote
|
||||
### From npm
|
||||
```sh
|
||||
npm install -g git@github.com:dzdidi/gitpear.git
|
||||
npm install -g gitpear
|
||||
```
|
||||
|
||||
### From local
|
||||
### From git
|
||||
```sh
|
||||
git clone git@github.com:dzdidi/gitpear.git
|
||||
cd gitpear
|
||||
npm install
|
||||
npm link
|
||||
```
|
||||
|
||||
NOTE: application home directory will be created in `~/.gitpear` - this may require `sudo`
|
||||
### From git + Nix
|
||||
```sh
|
||||
git clone git@github.com:dzdidi/gitpear.git
|
||||
cd gitpear
|
||||
npm install
|
||||
npm nix
|
||||
```
|
||||
|
||||
See `./result` - for binaries build by nix. To make the available add to path by running `PATH="${PATH:+${PATH}:}${PWD}/result/bin/"`
|
||||
|
||||
##
|
||||
|
||||
|
||||
4
bin/nix.sh
Executable file
4
bin/nix.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf result
|
||||
nix build '.#'
|
||||
@@ -7,6 +7,7 @@
|
||||
"types": "tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir types --target es2015",
|
||||
"lint": "standard --fix",
|
||||
"preinstall": "./bin/preinstall.sh",
|
||||
"nix": "./bin/nix.sh",
|
||||
"pretest": "tar xzf test_home.tar.gz -C . "
|
||||
},
|
||||
"bin": {
|
||||
|
||||
Reference in New Issue
Block a user