Comparing version 0.1.1 to 0.1.2
@@ -10,3 +10,3 @@ var fs = require('fs') | ||
var pattern = new RegExp("Host "+command, "g") | ||
var pattern = new RegExp("Host "+command+"\n", "g") | ||
, sshExist = data.match(pattern) | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "127-ssh", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Capture your command not found and tries to ssh", | ||
"homepage": "https://github.com/romainberger/127-ssh", | ||
"author":{ | ||
"author": { | ||
"name": "Romain Berger", | ||
@@ -16,4 +16,4 @@ "email": "romain@romainberger.com", | ||
"bugs": { | ||
"url" : "https://github.com/romainberger/127-ssh/issues", | ||
"email" : "romain@romainberger.com" | ||
"url": "https://github.com/romainberger/127-ssh/issues", | ||
"email": "romain@romainberger.com" | ||
}, | ||
@@ -20,0 +20,0 @@ "main": "index.js", |
@@ -28,4 +28,15 @@ # 127 SSH | ||
Let's say you want to ssh into your `coolserver` but you forgot to type `ssh` you'll get: | ||
$ coolserver | ||
zsh: command not found: coolserver | ||
With 127-ssh: | ||
$ coolserver | ||
SSH Host "coolserver" found | ||
user@coolserver.com's password: | ||
# LICENSE | ||
MIT |
@@ -1,3 +0,12 @@ | ||
var lib = require('./../index') | ||
var lib = require('./../') | ||
, test = require('tap').test | ||
, stdoutFixture = require('fixture-stdout') | ||
, fixture = new stdoutFixture() | ||
, writes = [] | ||
lib('whisky') | ||
test('It should find the host and ssh', function(t) { | ||
// change the environnement home path to use the test config file | ||
process.env.HOME = __dirname | ||
t.end() | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3912
25
42
5