1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 12:07:48 +00:00

Add more utility nushell functions

This commit is contained in:
RGBCube 2023-11-22 10:31:03 +03:00
parent 5d589a0f58
commit 00ea390425
No known key found for this signature in database
3 changed files with 7 additions and 0 deletions

View file

@ -12,6 +12,8 @@
envFile.source = ./environment.nu; envFile.source = ./environment.nu;
shellAliases = { shellAliases = {
cdtmp = "cd (mktemp --directory)";
la = "ls --all"; la = "ls --all";
ll = "ls --long"; ll = "ls --long";
lla = "ls --long --all"; lla = "ls --long --all";

View file

@ -12,6 +12,10 @@ $env.ENV_CONVERSIONS.PATH = {
} }
} }
def nix-find [thing: string] {
nix-locate ("bin/" + $thing) | grep --invert-match "^\\(" | grep ($thing + "\\$")
}
def hx [...arguments] { def hx [...arguments] {
kitty @ set-spacing padding=0 kitty @ set-spacing padding=0

View file

@ -5,6 +5,7 @@
fd fd
gotop gotop
hyperfine hyperfine
nix-index
nix-output-monitor nix-output-monitor
pstree pstree
ripgrep ripgrep