A place to share Nushell scripts with each other
Go to file
Igor b40ead9ae2
Port before_v0.60/cool_oneliners folder (#831)
This PR is part of porting all old scripts #221 and ports
`cool_oneliners` folder

## Summary

### dict.nu
This script has already been ported to `sourced/cool_oneliners/dict.nu`
in
28c7e097db

```yaml
from: before_v0.60/cool_oneliners/dict.nu
to: sourced/cool-oneliners/dict.nu
functions:
  dict: sourced/cool-oneliners/dict.nu:2:dict
```

### file_cat.nu
has already been ported to `sourced/cool_oneliners/file_cat.nu` in
c47ccd42b8
```yaml
  from: before_v0.60/cool_oneliners/file_cat.nu
  to: sourced/cool-oneliners/file_cat.nu
```

### filesize.nu

```yaml
from: before_v0.60/cool_oneliners/filesize.nu
to: sourced/cool-oneliners/filesize.nu
```

### js_map_to_markdown.nu
```yaml
from: before_v0.60/cool_oneliners/js_map_to_markdown.nu
to:  sourced/cool-oneliners/js_map_to_markdown.nu
```
I created `sourced/cool-oneliners/assets/js_map.json` with the data for
this script as it was before

### cdpath-implementation.nu
```yaml
from: before_v0.60/cool_oneliners/cdpath-implementation.nu
to: sourced/cool-oneliners/cdpath-implementation.nu
functions:
  c: sourced/cool-oneliners/cdpath-implementation.nu:18:c
```

### parse_aws_s3_ls.nu
I don't have aws so I just ported the syntax
```yaml
from: before_v0.60/cool_oneliners/parse_aws_s3_ls.nu
to:  null
```
Edit: I considered not porting this script yet because I can't test it
for now

### npm_update_versions.nu
```yaml
from: before_v0.60/cool_oneliners/npm_update_versions.nu
to: sourced/cool-oneliners/npm_update_versions.nu
```

### xml_search_schema.nu
```yaml
from: before_v0.60/cool_oneliners/xml_search_schema.nu
to: sourced/cool-oneliners/xml_search_schema.nu
```
2024-05-13 07:53:40 -05:00
.github/workflows Remove the failing CI on the main branch (#805) 2024-03-30 16:37:19 -05:00
aliases Add chezmoi aliases (#788) 2024-03-12 10:55:37 -05:00
assets use typos for corrections (#833) 2024-05-08 06:47:54 -05:00
before_v0.60 Port before_v0.60/cool_oneliners folder (#831) 2024-05-13 07:53:40 -05:00
benchmarks fix removed commands (#645) 2023-10-19 19:35:23 +02:00
custom-completions feat: add adb&fastboot completions (#834) 2024-05-10 11:05:44 -05:00
custom-menus Improve custom-menus docs (#832) 2024-05-06 12:32:53 -05:00
example-config use typos for corrections (#833) 2024-05-08 06:47:54 -05:00
make_release use typos for corrections (#833) 2024-05-08 06:47:54 -05:00
modules use typos for corrections (#833) 2024-05-08 06:47:54 -05:00
nu-hooks use typos for corrections (#833) 2024-05-08 06:47:54 -05:00
sourced Port before_v0.60/cool_oneliners folder (#831) 2024-05-13 07:53:40 -05:00
stdlib-candidate [stdlib-candidate] Clean up file bulk-rename a little (#798) 2024-03-30 16:19:06 -05:00
themes Support for catppuccin-latte (#741) 2024-03-07 06:18:50 -06:00
.gitattributes Add Nushell Language detect for linguist (#532) 2023-06-21 11:36:01 +03:00
.gitignore add a nu-check verification CI (#771) 2024-03-12 20:48:08 +01:00
LICENSE Initial commit 2021-01-23 07:33:45 +13:00
README.md Remove the failing CI on the main branch (#805) 2024-03-30 16:37:19 -05:00
toolkit.nu Refactor toolkit.nu (#791) 2024-03-15 19:17:31 +02:00
typos.toml use typos for corrections (#833) 2024-05-08 06:47:54 -05:00

Nushell Scripts

This is a place to share Nushell scripts with each other. If you'd like to share your scripts, fork this repository, and create a PR that adds it to the repo.

Sections

Running Scripts

You can run nushell scripts in a few different ways.

  1. You can type nu <script name>.
  2. From with nushell, you can type source <script name> and if the script is just a bunch of commands it will run the script. If the script is a custom command it will load those custom commands into your current scope so you can run them like any other command.