<commit_before># 127 SSH

Capture your command not found errors and tries to ssh.

## Installation

To use 127-ssh you need to use zsh 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<commit_msg>Fix zsh function to avoid crazy output<commit_after># 127 SSH

Capture your command not found errors and tries to ssh.

## Installation

To use 127-ssh you need to use zsh and node.

Start by installing the package with npm:

    npm install -g 127-ssh

Then in your `~/.zshrc` add this:

    command_not_found_handler () {
        if type "127-ssh" > /dev/null; then
            127-ssh $1
        fi
        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
{'fraction_non_alphanumeric': 0.06296547054840894, 'fraction_numerical': 0.02843601895734597, 'mean_word_length': 2.869109947643979, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '548829', 'n_tokens_mistral': 491, 'n_tokens_neox': 419, 'n_words': 228}