1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Rewrite the yadm module. (#975)

I'm here to fix the mistake that I made with the Yadm module.

I removed completions in favor of just scripts. 
I also added a way to install yadm as well.
This commit is contained in:
shelton louis 2024-10-17 17:02:10 -04:00 committed by GitHub
parent c67a6959fc
commit 04c70789ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4222 additions and 1676 deletions

View file

@ -2,16 +2,28 @@
Yadm is a dot files manager that is written in Bash. Yadm is a dot files manager that is written in Bash.
The code in this module reflects this fact. The code in this module reflects this fact.
The functions in this repo are typed wrappers around yadm. The functions in this file are typed wrappers around yadm.
## Usage ## Usage
To use this module make sure you have installed yadm. To use this module make sure you have installed `yadm`.
Installing with basher.
```bash
basher install TheLocehiliosan/yadm
```
Installing yadm with curl in Nu Shell session.
```nu
curl -fLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm ; chmod a+x /usr/local/bin/yadm
```
Then copy this folder to the folder where you place your nu scripts Then copy this folder to the folder where you place your nu scripts
Which is usually in `$"($nu.default-config-dir)"/scripts`. Which is usually in `$"($nu.default-config-dir)"/modules`.
Then reference the folder by doing in the scripts/mod.nu file. Then reference the folder by using the modules/yadm.nu.
```nu ```nu
export module yadm export module yadm

File diff suppressed because it is too large Load diff