HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

xxh — Bring your shell with all of your customizations through SSH sessions. Note: `xxh` does not install

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shellcommandallclixxhwithbringyour

Problem

How to use the xxh command: Bring your shell with all of your customizations through SSH sessions. Note: xxh does not install anything into system directories on the target machine; removing ~/.xxh will clear all traces of xxh on the target machine. More information: <https://github.com/xxh/xxh#usage>.

Solution

xxh — Bring your shell with all of your customizations through SSH sessions. Note: xxh does not install anything into system directories on the target machine; removing ~/.xxh will clear all traces of xxh on the target machine. More information: <https://github.com/xxh/xxh#usage>.

Connect to a host and run the current shell:
xxh "{{host}}"


Install the current shell into the target machine without prompting:
xxh "{{host}}" ++install


Run the specified shell on the target machine:
xxh "{{host}}" ++shell {{xonsh|zsh|fish|bash|osquery}}


Use a specific xxh configuration directory on the target machine:
xxh "{{host}}" ++host-xxh-home {{~/.xxh}}


Use the specified configuration file on the host machine:
xxh "{{host}}" ++xxh-config {{~/.config/xxh/config.xxhc}}


Specify a password to use for the SSH connection:
xxh "{{host}}" ++password "{{password}}"


Install an xxh package on the target machine:
xxh "{{host}}" ++install-xxh-packages {{package}}


Set an environment variable for the shell process on the target machine:
xxh "{{host}}" ++env {{name}}={{value}}

Code Snippets

Connect to a host and run the current shell

xxh "{{host}}"

Install the current shell into the target machine without prompting

xxh "{{host}}" ++install

Run the specified shell on the target machine

xxh "{{host}}" ++shell {{xonsh|zsh|fish|bash|osquery}}

Use a specific xxh configuration directory on the target machine

xxh "{{host}}" ++host-xxh-home {{~/.xxh}}

Use the specified configuration file on the host machine

xxh "{{host}}" ++xxh-config {{~/.config/xxh/config.xxhc}}

Context

tldr-pages: common/xxh

Revisions (0)

No revisions yet.