nu_scripts/sourced/cool-oneliners
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
..
assets Port before_v0.60/cool_oneliners folder (#831) 2024-05-13 07:53:40 -05:00
cargo_search.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
cdpath-implementation.nu Port before_v0.60/cool_oneliners folder (#831) 2024-05-13 07:53:40 -05:00
clear_screen_buf.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
dict.nu Replace deprecated fetch with http get (#530) 2023-06-15 06:13:39 -05:00
file_cat.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
file_convert_naming_case.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
filesize.nu Port before_v0.60/cool_oneliners folder (#831) 2024-05-13 07:53:40 -05:00
git_gone.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
js_map_to_markdown.nu Port before_v0.60/cool_oneliners folder (#831) 2024-05-13 07:53:40 -05:00
npm_update_versions.nu Port before_v0.60/cool_oneliners folder (#831) 2024-05-13 07:53:40 -05:00
parse_fish_command_history.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
pwd-short.nu 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
README.md Adding http oneliner and changing reference to renamed Discord channel. (#731) 2024-01-10 22:11:44 +02:00
simple_http_request.nu Adding http oneliner and changing reference to renamed Discord channel. (#731) 2024-01-10 22:11:44 +02:00
xml_search_schema.nu Port before_v0.60/cool_oneliners folder (#831) 2024-05-13 07:53:40 -05:00

cool oneliners

Capturing oneliners to and from the nushell community.

Consider these a living library. Or an ongoing story of how people actually use nu.

Naming and script requirements

  • the filename should be an abbreviation of the general topic of the script For example:

    git_batch_extract.nu
    
  • the script should have two lines

    • the first line should be a comment describing the script's purpose
    • the second line should be the cool oneliner