11 releases
0.2.2 | May 22, 2024 |
---|---|
0.2.1 | May 21, 2024 |
0.2.0 | Sep 29, 2022 |
0.1.7 | Aug 7, 2022 |
0.1.4 | Jul 26, 2022 |
#58 in Configuration
23KB
396 lines
Simple SSH host finder. Fuzzy search built-in.
Table of contents
Installation
From crates.io
$ cargo install shf
From source
$ git clone https://github.com/jsmits/shf.git
$ cd shf
cargo build
$ cargo build --release
(put the resulting target/release/shf
on your PATH
)
cargo install
$ cargo install --path .
Usage
$ shf -h
shf 0.2.2
Simple SSH host finder
USAGE: shf [OPTIONS]
OPTIONS:
-c, --config <CONFIG> SSH config file [default: ~/.ssh/config]
-l, --list Print all hosts
-h, --help Print help
-V, --version Print version
Examples
Fuzzy search through your hosts
in ~/.ssh/config
$ shf
in a different SSH config file
$ shf -c /path/to/ssh/config
Search a host and directly SSH into it
bash / zsh
$ ssh $(shf)
fish
$ ssh (shf)
List all hosts
$ shf -l
How to contribute
Please create a new issue when you encounter a bug or have any suggestions or feature requests. Pull requests are welcome as well.
Dependencies
~16–24MB
~342K SLoC