From 443d15e03b9069684294c01243b9404039ecf55e Mon Sep 17 00:00:00 2001 From: ryan4yin Date: Mon, 29 May 2023 17:34:58 +0800 Subject: [PATCH] feat: add nushell & media tools to darwin --- home/common/nushell/config.nu | 0 home/common/nushell/default.nix | 4 ++-- home/common/nushell/env.nu | 36 --------------------------------- home/common/starship.nix | 4 ++++ 4 files changed, 6 insertions(+), 38 deletions(-) delete mode 100644 home/common/nushell/config.nu delete mode 100644 home/common/nushell/env.nu diff --git a/home/common/nushell/config.nu b/home/common/nushell/config.nu deleted file mode 100644 index e69de29b..00000000 diff --git a/home/common/nushell/default.nix b/home/common/nushell/default.nix index cf2cdeb5..64142520 100644 --- a/home/common/nushell/default.nix +++ b/home/common/nushell/default.nix @@ -1,7 +1,7 @@ { programs.nushell = { enable = true; - configFile.source = ./config.nu; - envFile.source = ./env.nu; + # configFile.source = ./config.nu; + # envFile.source = ./env.nu; }; } \ No newline at end of file diff --git a/home/common/nushell/env.nu b/home/common/nushell/env.nu deleted file mode 100644 index 5804d348..00000000 --- a/home/common/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 diff --git a/home/common/starship.nix b/home/common/starship.nix index 9fa9a629..5b6bafbf 100644 --- a/home/common/starship.nix +++ b/home/common/starship.nix @@ -1,6 +1,10 @@ {config, ...}: { programs.starship = { enable = true; + + enableBashIntegration = true; + enableNushellIntegration = true; + settings = { character = { success_symbol = "[›](bold green)";