You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@
8
8
</p>
9
9
10
10
## Install or update
11
-
```
11
+
```shell script
12
12
python3 -m pip install --upgrade xxh-xxh
13
13
```
14
14
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.
15
15
16
16
## Usage
17
-
```
17
+
```shell script
18
18
$ ./xxh -h ____ __________ @ @
19
19
usage: xxh <host from ~/.ssh/config> ______ / \ \__/
There is `~/.xxh/.xxhc` [yaml](https://en.wikipedia.org/wiki/YAML) config to save arguments and reuse it:
30
-
```
30
+
```yaml
31
31
hosts:
32
32
myhost: # settings for myhost
33
33
-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
68
68
69
69
### Oh My Zsh seamless SSH
70
70
Bring zsh and Oh My Zsh with your current session settings to the host:
71
-
```
71
+
```shell script
72
72
zsh$ xxhp ri xxh-shell-zsh xxh-plugin-zsh-ohmyzsh
73
73
74
74
zsh$ echo $ZSH_THEME
@@ -82,7 +82,7 @@ agnoster
82
82
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.
83
83
84
84
### Read host as a table with osquery
85
-
```
85
+
```shell script
86
86
$ xxh myhost +s osquery
87
87
osquery> SELECT * FROM users WHERE username='news';
0 commit comments