Comparing version 0.1.0 to 0.1.1
@@ -14,2 +14,3 @@ var fs = require('fs') | ||
if (sshExist) { | ||
console.log('Command not found: '+command) | ||
console.log('SSH Host "'+command+'" found') | ||
@@ -16,0 +17,0 @@ spawn('ssh', [command], {stdio: 'inherit'}) |
{ | ||
"name": "127-ssh", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Capture your command not found and tries to ssh", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/romainberger/127-ssh", |
@@ -7,3 +7,3 @@ # 127 SSH | ||
To use 127-ssh you need to use zsh (or maybe not, but you'll need something similar to zsh's `TRAPZERR()` hook) and node. | ||
To use 127-ssh you need to use zsh and node. | ||
@@ -17,5 +17,6 @@ Start by installing the package with npm: | ||
command_not_found_handler () { | ||
printf "Command not found: $1" | ||
127-ssh $1 | ||
return 127 | ||
if type "127-ssh" > /dev/null; then | ||
127-ssh $1 | ||
fi | ||
return 127 | ||
} | ||
@@ -22,0 +23,0 @@ |
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
17
31
3328