1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 15:17:47 +00:00
Commit graph

1194 commits

Author SHA1 Message Date
JT
f58a717825
add the new crate to the release script 2022-12-20 21:37:27 +13:00
JT
ddcf11963b
Fix TWiN script (#328) 2022-12-17 07:44:24 +13:00
Francis
d003da280a
fixed get-weather celsius loop (#326)
Co-authored-by: Francis <francis@dornbusch.com>
2022-12-14 14:21:49 -06:00
mike
6ae72ddc16
fix up command for v0.72.0 (#325)
* make default for `up` command 1

* make default for `up` command 1: update comment

* update: fix `up` command for v0.72.0

* remove before_v0.60/fs/up.nu
2022-12-13 14:03:26 -06:00
WindSoilder
1203bec68d
fix custom completions arg names (#324) 2022-12-12 06:20:31 -06:00
Darren Schroeder
2117c1bb35
change for to each in oh-my.nu (#323) 2022-12-10 09:14:30 -06:00
JT
6f9d6250d4
Switch to 'and' and 'or' (#322)
* Switch to 'and' and 'or'

* oops
2022-12-08 12:52:10 +13:00
Edward DeVries
fe5c307390
Replace deprecated operators in panache-git (#321)
Use `and` in favor of `&&`
Use `or` in favor of `||`

https://www.nushell.sh/blog/2022-11-29-nushell-0.72.html#new-boolean-operator-xor-planned-operator-simplification
2022-12-03 18:54:33 -08:00
Access
3451c3f0e0
feat: add example for starship and shell_space (#320) 2022-12-01 07:01:15 -06:00
WindSoilder
8aec0bcc57
fix merge doesnt support block input (#318) 2022-11-28 06:16:23 -06:00
Jesper Hasselquist
e2d8f736d4
feat(custom-completions): add zellij completions (#317) 2022-11-25 07:26:34 -06:00
Emil Gardström
a532ee8c4d
improve cargo completions (#316)
* improve cargo completions

* fix indentation
2022-11-22 15:49:36 -06:00
tshaynik
a4e08f4901
Add custom completions for nix (#314)
* Add generated completions for nix

Add initial completions for nix, generated by parsing
the nix help pages with a script.

* Add completion for nix log-format

* add README for nix completions

* allow taking arguments
2022-11-15 06:00:04 -06:00
Darren Schroeder
73e67b8054
updates get-weather to remove the for loop (#313) 2022-11-12 17:22:10 -06:00
Kevin Zhang
c3abd6439c
Fix undetected windows enviroment (#312) 2022-11-11 12:30:58 -06:00
Darren Schroeder
cb5f2627db
add oh-my-nu-v2 (#311) 2022-11-05 15:56:35 -05:00
mike
d405fc03e5
Make the default for the up command (in the filesystem directory) 1 (#310)
* make default for `up` command 1

* make default for `up` command 1: update comment
2022-11-05 08:18:12 -05:00
Alex Saveau
8e693571e3
Create simple.nu (#309) 2022-10-27 20:26:55 -05:00
Darren Schroeder
3b4f9e2df4
tweak no back progress bar example (#308) 2022-10-23 20:23:20 -05:00
WindSoilder
911e53674f
fix conda deactivate error when activate with no-prompt (#307) 2022-10-22 18:37:26 +03:00
Dan Davison
86c73877c3
sockets command (#306)
* sockets command

* Update README
2022-10-17 14:44:55 -07:00
eggcaker
26654d9da8
fix the PATH not working on windows (#305) 2022-10-10 20:40:06 -05:00
DWTW321
daf23a9b77
New custom completions for ani-cli, btm, glow & tealdeer (#304)
* New custom completions for ani-cli, btm, glow, gsudo & tealdeer

* Delete README.md

* Delete gsudo-completions.nu

* Update btm-completions.nu

* fixed error in btm completions
2022-10-09 17:56:50 -05:00
Yethal
dab62c255b
add update-path.nu (#303) 2022-10-08 13:42:17 -05:00
Edward DeVries
adb76b3e9c
Replace str collect with str join in panache-git (#301)
`str collect` has been deprecated as of Nushell 0.69

Also, export some helper commands so that they can be used
for debugging or for building a custom prompt
2022-09-29 07:38:35 -05:00
Zh_Jk
5e0a934167
Update rbenv.nu (#300) 2022-09-28 13:38:53 -05:00
Neur1n
646dec4406
feat: added coloring/hl.nu, a highlighting module (#299) 2022-09-27 06:07:13 -05:00
WindSoilder
7a7051e9a7
add background feature (#298)
* add background feature

* update README

* rename folder

* fix typo
2022-09-23 18:35:13 -05:00
Darren Schroeder
c72a6717b9
update cargo update completions 2022-09-22 10:14:11 -05:00
Darren Schroeder
e28c0bdb6d
add cargo update completions (#297) 2022-09-22 10:07:59 -05:00
Francesc Elies
b42a0a4c9b
cargo clippy completions (#296)
Co-authored-by: Francesc Elies <francesc.elies@mbbm-ast.com>
2022-09-22 09:55:52 -05:00
Lightfire228
7ba3b00bb5
[WIP] Feature/auto venv (#289)
* initial auto-venv implementation

* on enter and exit hooks now work

* fixed bugs related to overlays

* fix issues with re-entering overlay

* fix issues with "on swap"

* remove hook disabling flag
(hooks don't self trigger)

* fix on_exit

* update syntax

* moved files

* split out modules into separate files

* migrate auto-venv to 0.68 syntax

* refactored venvs to be "drop in" modules
kinda borked

* got auto-venv working with semi plug-n-play modules

* add documentation
2022-09-09 14:23:19 -05:00
e2dk4r
f51feccce8
custom completions: scoop: fix getting environmental variables (#293)
`nu v0.68.0` how `use filename *` works, this broke my way of getting environmental variables.
Before I get environmental variables by `$env.NAME`, now I use `env | where name == 'NAME' | get value | first`
2022-09-08 06:31:48 -05:00
Edward DeVries
53108cd068
Convert panache-git from script to module (#292)
In Nushell 0.68, the `source` command has been deprecated.
Going forward, the way to utilize custom commands is
to put them into a module and import them with `use`.

This means that `panache-git.nu` had to be converted
from a script to a module so that the main prompt command
could be imported by a user's Nushell environment config.
2022-09-07 16:52:45 -05:00
Antoine Stevan
bdfed700a4
add a collection of colorschemes for nushell (#286)
* add my personal color config files

remove the useless colors.nu script

* add all lemnos theme files as a submodule

* add a template module from the default dark theme

the `map.csv` file:
```csv
code,bold,bash,nushell
0,false,black,black
1,false,red,red
2,false,green,green
3,false,yellow,yellow
4,false,blue,blue
5,false,magenta,purple
6,false,cyan,cyan
7,false,white,light_gray
8,true,black,dark_gray
9,true,red,red_bold
10,true,green,green_bold
11,true,yellow,yellow_bold
12,true,blue,blue_bold
13,true,magenta,purple_bold
14,true,cyan,light_cyan
14,true,cyan,cyan_bold
15,true,white,white
```

the command used was
```nushell
open map.csv |
each {
    |it|
    sed -i $"s/: ($it.nushell)$/: \"{{color($it.code)}}\"/" template.nu
}
```
or as a oneliner
```nushell
open map.csv | each {|it| sed -i $"s/: ($it.nushell)$/: \"{{color($it.code)}}\"/" template.nu}
```

* add a script to make all the scripts at once

* make all the themes

* add a README with some credits to lemnos

* add usage instructions to the README

* add desired values to the template

This commit adds the background, the foreground and the cursor
colors to the themes as commented lines.
These do not fit into any nushell theme as they should be set by the
terminal emulator, but they are included here for completeness.

Addresses https://github.com/nushell/nu_scripts/pull/286#issuecomment-1230814914

* regenerate the themes with the new template

* remove all the occurences of sed by str replace

* remove the lemnos submodule

Co-authored-by: amtoine <44101798+AntoineStevan@users.noreply.github.com>
2022-09-07 13:48:28 -05:00
e2dk4r
d160647359
custom completions: scoop: fix list sub command (#291)
`scoop list` can be call without any parameters.
2022-09-07 12:12:45 -05:00
Dan Davison
50538936fc
Respond to upstream changes: empty? -> is-empty (#290) 2022-09-07 06:24:10 -05:00
Dan Davison
97b9c1202a
Async git prompt (#288) 2022-09-05 17:08:40 -05:00
Stefan Holderbach
203727b291
Update old question mark commands any?/all?/empty? to any/all/is-empty (#287)
* Replace `all?` with `all` for nushell/nushell#6464

* Replace `any?` with `any` for nushell/nushell#6464

* Replace `emtpy?` with `is-empty`

Account for nushell/nushell#6464

* Ignore for `before_v0.60` scripts
2022-09-05 16:43:01 +02:00
Kamil
17b40ee798
Added German diacritics (#284) 2022-08-27 06:06:02 -05:00
Yethal
2b82a497f9
Add function to remove diacritics from string (#283)
* add remove-diacritics.nu

* newline

Co-authored-by: Yethal <nosuchemail@email.com>
2022-08-26 13:52:07 -05:00
Darren Schroeder
f3063af401
remove engine-q references (#282) 2022-08-26 06:59:17 -05:00
e2dk4r
ff5cf0e96d
custom completions: scoop: adds some missing command completions (#281)
this commit adds scoop commands that are:
- bucket
- cache
- create
- depends
- download
- export
- hold
- import
- prefix
- reset
- unhold
- virustotal
2022-08-25 08:54:36 -05:00
e2dk4r
87937cb86f
custom completions: scoop: add some missing command completions (#280)
* custom completions: scoop: add some missing command completions

this commit adds scoop commands that are:
- cat
- checkup
- config
- home
- status
- which

* custom completions: scoop: fix getting configuration values
2022-08-23 06:33:17 -05:00
Maciej Krępa
124eeec04d
added webscrapping script for twitter (#279)
* added twitter script

* fixed a typo

* added multi user support

* improved post request

* typo fix

Co-authored-by: mk00pl <noone@example.com>
2022-08-20 07:22:46 -05:00
azzamsa
d698751787
fix: zoxide support Nushell out of the box (#278) 2022-08-18 11:05:35 +03:00
e2dk4r
3ee771b640
custom completions: add completions for scoop (#277)
this commit add scoop commands that are:
- cleanup
- info
- list
- uninstall
- update
2022-08-17 09:35:59 -05:00
John Axel Eriksson
94d2b58217
Update direnv example to run in pre_prompt rather than env_change (#276)
Any updates to the env should be applied automatically without having to step out/in to the directory again.
2022-08-16 08:06:25 -05:00
Zh_Jk
66763627ce
add rbenv script (#274)
* add rbenv script

* Update rbenv.nu
2022-08-11 06:25:21 -05:00
John Axel Eriksson
a771e04220
Add direnv config example. (#272) 2022-08-07 16:25:01 +03:00