Skip to content

Commit

Permalink
Fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Aug 21, 2014
1 parent fcd394d commit ef33992
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

### I am not a child, what is it?

*dot-clipboard* is a nodejs daemon that runs javascript scripts located in `~/.dot-clipboard` each time the clipboard content change.
*dot-clipboard* is a nodejs daemon that runs javascript scripts located in `~/.clipboard` each time the clipboard content change.

### Ok... but why?

Expand All @@ -32,7 +32,7 @@ Believe it or not **we use the clipboard the same way since the 70s**. Yes, we'v

### Wow that's awesome! What more does it do?

- automatically load scripts located inside `~/.dot-clipboard`
- automatically load scripts located inside `~/.clipboard`
- automatically reload scripts when changed/renamed
- customizable concurrency per script
- fully-asynchronous scripts : each *clipboard change* events are duplicated for each script, queued, and then consumed asynchronously
Expand All @@ -46,7 +46,7 @@ npm install dot-clipboard -g
## How do I write my first script?

- Start `dot-clipboard`
- Open `~/.dot-clipboard`, and save the following `myScript.js`:
- Open `~/.clipboard`, and save the following `myScript.js`:

```javascript
module.exports = {
Expand All @@ -71,7 +71,7 @@ My first script got new clipboard data : test

- You can now edit/rename `myScript.js` and it will be automatically removed/reloaded inside `dot-clipboard`.

## I don't like `~/.dot-clipboard`, how can I change it?
## I don't like `~/.clipboard`, how can I change it?

The scripts localization is customizable with the `DOT_CLIPBOARD_DIR` environment variable.

Expand Down
3 changes: 3 additions & 0 deletions bin/dot-clipboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
'use strict';
require('../');
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dot-clipboard",
"version": "1.1.3",
"version": "1.2.0",
"description": ".clipboard - a daemon that runs scripts from `~/.dot-clipboard` each time the clipboard content change",
"main": "index.js",
"keywords": ["clipboard", "workflow", "automation"],
Expand All @@ -18,7 +18,7 @@
},
"contributors": [],
"scripts": {
"postinstall": "mkdir -p ~/.dot-clipboard;cp -n -R -v ./examples/ ~/.dot-clipboard;exit 0"
"postinstall": "mkdir -p ~/.clipboard;cp -n -R -v ./examples/ ~/.clipboard;exit 0"
},
"dependencies": {
"async": "^0.9.0",
Expand Down

0 comments on commit ef33992

Please sign in to comment.