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:
parent
c67a6959fc
commit
04c70789ea
2 changed files with 4222 additions and 1676 deletions
|
@ -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
|
||||||
|
|
5878
modules/yadm/mod.nu
5878
modules/yadm/mod.nu
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue