From c7ae582d33cd6d1b97ae0a374b924bda9350a459 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Tue, 1 Apr 2025 13:27:41 -0700 Subject: [PATCH] stuff --- users/tao/nushell/extras/nix.nu | 5 +++-- users/tao/nushell/extras/stuff.nu | 2 +- users/tao/starship.toml | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/users/tao/nushell/extras/nix.nu b/users/tao/nushell/extras/nix.nu index 883c9f5..2d3cb71 100644 --- a/users/tao/nushell/extras/nix.nu +++ b/users/tao/nushell/extras/nix.nu @@ -1,7 +1,8 @@ alias nd = nix develop -def ns [package] { - nix shell $"nixpkgs#($package)" +def ns [...packages: string] { + let packages = $packages | each {$"nixpkgs#($in)"} + nix shell ...$packages } # def nr [package] { diff --git a/users/tao/nushell/extras/stuff.nu b/users/tao/nushell/extras/stuff.nu index bb5571b..f408222 100644 --- a/users/tao/nushell/extras/stuff.nu +++ b/users/tao/nushell/extras/stuff.nu @@ -32,7 +32,7 @@ def "snapper clear" [] { snapper delete $"($first.number)-($last.number)" } -const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon9/pwm2_enable" +const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon3/pwm2_enable" def quiet [] { match (hostname) { diff --git a/users/tao/starship.toml b/users/tao/starship.toml index c06880e..0700626 100644 --- a/users/tao/starship.toml +++ b/users/tao/starship.toml @@ -48,6 +48,7 @@ truncation_symbol = "…/" "pictures" = " " [rust] +disabled = true # # symbol = "" style = "bg:color_blue" format = '[[ $symbol($version) ](fg:color_fg0 bg:color_blue)]($style)'