Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 136fd7e

Browse files
author
anki-code
committed
0.5.9
1 parent 07255ae commit 136fd7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
</p>
99

1010
## Install or update
11-
```
11+
```shell script
1212
python3 -m pip install --upgrade xxh-xxh
1313
```
1414
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.
1515

1616
## Usage
17-
```
17+
```shell script
1818
$ ./xxh -h ____ __________ @ @
1919
usage: xxh <host from ~/.ssh/config> ______ / \ \__/
2020
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] _____ /
2727
```
2828
2929
There is `~/.xxh/.xxhc` [yaml](https://en.wikipedia.org/wiki/YAML) config to save arguments and reuse it:
30-
```
30+
```yaml
3131
hosts:
3232
myhost: # settings for myhost
3333
-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
6868
6969
### Oh My Zsh seamless SSH
7070
Bring zsh and Oh My Zsh with your current session settings to the host:
71-
```
71+
```shell script
7272
zsh$ xxhp ri xxh-shell-zsh xxh-plugin-zsh-ohmyzsh
7373
7474
zsh$ echo $ZSH_THEME
@@ -82,7 +82,7 @@ agnoster
8282
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.
8383
8484
### Read host as a table with osquery
85-
```
85+
```shell script
8686
$ xxh myhost +s osquery
8787
osquery> SELECT * FROM users WHERE username='news';
8888
+-----+-----+----------+-------------+-----------------+-------------------+

0 commit comments

Comments
 (0)