npm.devtool.tech
👏 You can access 127-ssh package with using 127Ssh variable in browser devtools!
Capture your command not found and tries to ssh

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

127 SSH

Capture your command not found errors and tries to ssh.

Installation

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.

Start by installing the package with npm:

npm install -g 127-ssh

Then in your ~/.zshrc add this:

command_not_found_handler () {
   printf "Command not found: $1"
   127-ssh $1
   return 127
}

For 127-ssh to work, you need to use an ssh config file kept in ~/.ssh/config and use it to store your ssh hosts.

Usage

Whenever you type something in your prompt that exit as a command not found, the script will work. It tries to find an ssh configuration with a Host corresponding to the command you typed.

LICENSE

MIT

🔎Explore Package🔎CDN Script

Score

Popularity4/100
Quality30/100
Maintenance50/100