From 40b13f7787b56463123a1b05c61fc4f3f64bf934 Mon Sep 17 00:00:00 2001 From: Thomas Syms Date: Thu, 7 Mar 2024 12:01:45 -0400 Subject: [PATCH] Added carapace to nixos --- home/shell/carapace.nix | 5 +++++ home/shell/common.nix | 1 + home/shell/default.nix | 1 + home/shell/nushell/config.nu | 0 home/shell/nushell/default.nix | 2 -- home/shell/nushell/env.nu | 36 ---------------------------------- 6 files changed, 7 insertions(+), 38 deletions(-) create mode 100644 home/shell/carapace.nix delete mode 100644 home/shell/nushell/config.nu delete mode 100644 home/shell/nushell/env.nu diff --git a/home/shell/carapace.nix b/home/shell/carapace.nix new file mode 100644 index 0000000..caed50c --- /dev/null +++ b/home/shell/carapace.nix @@ -0,0 +1,5 @@ +{ + programs.carapace = { + enable = true; + }; +} diff --git a/home/shell/common.nix b/home/shell/common.nix index caded68..78c9a5e 100644 --- a/home/shell/common.nix +++ b/home/shell/common.nix @@ -22,6 +22,7 @@ du-dust dysk fd + file lemmeknow ouch diff --git a/home/shell/default.nix b/home/shell/default.nix index 3adb03a..848e9b2 100644 --- a/home/shell/default.nix +++ b/home/shell/default.nix @@ -6,6 +6,7 @@ ./bat.nix ./bottom.nix ./btop.nix + ./carapace.nix ./common.nix ./direnv.nix ./eza.nix diff --git a/home/shell/nushell/config.nu b/home/shell/nushell/config.nu deleted file mode 100644 index e69de29..0000000 diff --git a/home/shell/nushell/default.nix b/home/shell/nushell/default.nix index 9165426..c314fa3 100644 --- a/home/shell/nushell/default.nix +++ b/home/shell/nushell/default.nix @@ -1,7 +1,5 @@ { programs.nushell = { enable = true; - configFile.source = ./config.nu; - envFile.source = ./env.nu; }; } diff --git a/home/shell/nushell/env.nu b/home/shell/nushell/env.nu deleted file mode 100644 index 5804d34..0000000 --- a/home/shell/nushell/env.nu +++ /dev/null @@ -1,36 +0,0 @@ -# Nushell Environment Config File - -# Specifies how environment variables are: -# - converted from a string to a value on Nushell startup (from_string) -# - converted from a value back to a string when running external commands (to_string) -# Note: The conversions happen *after* config.nu is loaded -let-env ENV_CONVERSIONS = { - "PATH": { - from_string: { |s| $s | split row (char esep) | path expand -n } - to_string: { |v| $v | path expand -n | str join (char esep) } - } - "Path": { - from_string: { |s| $s | split row (char esep) | path expand -n } - to_string: { |v| $v | path expand -n | str join (char esep) } - } -} - -# Directories to search for scripts when calling source or use -# -# By default, /scripts is added -let-env NU_LIB_DIRS = [ - ($nu.config-path | path dirname | path join 'scripts') -] - -# Directories to search for plugin binaries when calling register -# -# By default, /plugins is added -let-env NU_PLUGIN_DIRS = [ - ($nu.config-path | path dirname | path join 'plugins') -] - -# To add entries to PATH (on Windows you might use Path), you can use the following pattern: -# let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path') - -mkdir ~/.cache/starship -starship init nu | sed "s/size -c/size/" | save ~/.cache/starship/init.nu \ No newline at end of file