mirror of
https://github.com/xxh/xxh
synced 2025-02-20 14:28:29 +00:00
0.5.9
This commit is contained in:
parent
07255aedc1
commit
136fd7e2da
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -8,13 +8,13 @@
|
|||
</p>
|
||||
|
||||
## Install or update
|
||||
```
|
||||
```shell script
|
||||
python3 -m pip install --upgrade xxh-xxh
|
||||
```
|
||||
After install you can just using `xxh` command as replace `ssh` to connecting to the host because `xxh` has seamless support of basic `ssh` command arguments.
|
||||
|
||||
## Usage
|
||||
```
|
||||
```shell script
|
||||
$ ./xxh -h ____ __________ @ @
|
||||
usage: xxh <host from ~/.ssh/config> ______ / \ \__/
|
||||
usage: xxh [ssh arguments] [user@]host[:port] [xxh arguments] ____ / ______ \ / \
|
||||
|
@ -27,7 +27,7 @@ usage: xxh [-p SSH_PORT] [-l SSH_LOGIN] [-i SSH_PRIVATE_KEY] _____ /
|
|||
```
|
||||
|
||||
There is `~/.xxh/.xxhc` [yaml](https://en.wikipedia.org/wiki/YAML) config to save arguments and reuse it:
|
||||
```
|
||||
```yaml
|
||||
hosts:
|
||||
myhost: # settings for myhost
|
||||
-p: 2222 # set special port
|
||||
|
@ -68,7 +68,7 @@ When you run `xxh myhost +s xonsh` you'll get python, pip and python-powered she
|
|||
|
||||
### Oh My Zsh seamless SSH
|
||||
Bring zsh and Oh My Zsh with your current session settings to the host:
|
||||
```
|
||||
```shell script
|
||||
zsh$ xxhp ri xxh-shell-zsh xxh-plugin-zsh-ohmyzsh
|
||||
|
||||
zsh$ echo $ZSH_THEME
|
||||
|
@ -82,7 +82,7 @@ agnoster
|
|||
This `source` command get your current zsh session theme and plugins and pass it to the xxh session. If you need more complex settings just fork the [xxh-plugin-zsh-ohmyzsh](https://github.com/xxh/xxh-plugin-zsh-ohmyzsh) and hack it.
|
||||
|
||||
### Read host as a table with osquery
|
||||
```
|
||||
```shell script
|
||||
$ xxh myhost +s osquery
|
||||
osquery> SELECT * FROM users WHERE username='news';
|
||||
+-----+-----+----------+-------------+-----------------+-------------------+
|
||||
|
|
Loading…
Add table
Reference in a new issue