Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/admk/xxh-plugin-prerun-dotfiles
https://github.com/admk/xxh-plugin-prerun-dotfiles
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/admk/xxh-plugin-prerun-dotfiles
- Owner: admk
- License: bsd-2-clause
- Created: 2023-12-20T13:08:09.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-03T04:23:29.000Z (about 1 year ago)
- Last Synced: 2024-05-21T02:10:26.757Z (8 months ago)
- Language: Shell
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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`.