Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/admk/xxh-plugin-prerun-dotfiles


https://github.com/admk/xxh-plugin-prerun-dotfiles

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        


The dotfiles plugin is the start point to create something similar to dotfiles project for xxh.


If you like the idea of xxh click ⭐ on the repo and stay tuned.

The `home` directory contains the files which will be copied to xxh home directory (default `/home/user/.xxh/`) before running shell.
The [XDG](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) directory `.config`
will be copied to `$XDG_CONFIG_HOME` (default `/home/user/.xxh/.config`). Learn more about [home settings in docs](https://github.com/xxh/xxh/wiki#how-to-set-homeuser-as-home-on-host).

## Note!
The plugin copy files only once during first start. It copies the files from plugin home directory to the host xxh home directory
as addition and without replacing. It means if you hadn't the directory it will appear. If you have directory with files
but without the file from plugin home it just appears.

Be carefully if you are using [non-hermetic environment](https://github.com/xxh/xxh/wiki#how-to-set-homeuser-as-home-on-host) by using `+hhh '~' +hhx '~'` arguments.

## Install
From xxh repo:
```bash
xxh +I xxh-plugin-prerun-dotfiles
# or from any Github repo: xxh +I https://github.com/xxh/xxh-plugin-prerun-dotfiles
```
Connect:
```
xxh yourhost +if
```

## Preinstall PyPi packages
Add PyPi packages to `pip-requirements.txt` and they will be in `$XXH_HOME/.local`.
This is compatible with [xxh-shell-xonsh](https://github.com/xxh/xxh-shell-xonsh), [xxh-plugin-prerun-python](https://github.com/xxh/xxh-plugin-prerun-python) and `pip install --user`.