Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
chore: update nushell env and completions Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmTW1s4ACgkQuFOtpdp7 v3oDKQ/7BTsb9gV2UpwuSWkk9dratxhqvaN3QwVjC7+tX+uoSd9nk1rRrBU9qlDH hy9J0pXJai3CdPrFrB6HecAA10jG66dqrWpfvtOC0nCcHgDPNX+/PjEg9mqruYq9 eGYkKBEbcfx5ngk0JTYIkl6+MTMXGjngarg9w+gRwlnBke9csrn0960CCZHW9mWH yg9vQ7WJ6SmwObNLFRz6Bt+3xLuyAts1BS6GCk7wOTrXEuQ+cz2DLJLtb5uHpp4U Pc5LwTTjL0Huw96kGKrU1xFDUHZ5GTNF2zsN/TNgXf43oP1TrWI7oLt8SHHoOF0Z TtyXVU7ug6vlJ2n7M0mgrApbrwH1ySZGiHYtqcDUayHhe89ksuaaYe+C8ipIjL+o o1+qG8zCtuMsChdQUAHOdv0W1lxMkNTy228JpwG6uWfc7I33r2GX7sku6RVJ7TAS Ut68v1zDIOfO2CozyeW0xtPS9C3lFzavBYj7EnQ9KAFnsFdrjpsouQ+AuM5505iQ CXC6j0a9Xot5WtHYyi2RcrOyQtEF8kvt5yml1l0d7DunltBGAZgTbYB5uCWhSOkz 2fu/Js/XJvgDfVZPgVH33ahCWKBjgBMEN17XtiH/bWX628pbrXKQVDTs0obleNPe h6EZyCw4A5HhG6B3Wfs9U34R3+hHzS/q49vm1T8TvJJBKdRjAF0= =KL2d -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
2 years ago
7 changed files, 31 additions(+), 31 deletions(-)
M apps/nushell.nix -> apps/nushell.nix
diff --git a/apps/nushell.nix b/apps/nushell.nix
index e03f202dadf0e482037165e5463ad12edbfa1573..a149e8c4187e26a4ca621f661839e4b114b9f61f 100644
--- a/apps/nushell.nix
+++ b/apps/nushell.nix
@@ -20,12 +20,12 @@       use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/bitwarden-cli/bitwarden-cli-completions.nu *
       use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/btm/btm-completions.nu *
       use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/git/git-completions.nu *
       use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/glow/glow-completions.nu *
-      use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/just/just.nu *
+      use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/just/just-completions.nu *
       use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/nix/nix-completions.nu *
     '';
     extraEnv = ''
-      let-env GOPATH = "${config.xdg.dataHome}/go"
-      let-env PATH = ($env.PATH | split row (char esep) | prepend '${config.xdg.dataHome}/go/bin')
+      $env.GOPATH = "${config.xdg.dataHome}/go"
+      $env.PATH = ($env.PATH | split row (char esep) | prepend '${config.xdg.dataHome}/go/bin')
     '';
   };
   xdg.configFile = {
M apps/nushell/config.nu -> apps/nushell/config.nu
diff --git a/apps/nushell/config.nu b/apps/nushell/config.nu
index f4cf54145d6742fe8b6956a8371616e38feb648c..1fa79629a143b689222b1d024eb30d2a50d1666d 100644
--- a/apps/nushell/config.nu
+++ b/apps/nushell/config.nu
@@ -297,7 +297,7 @@ # }
 
 
 # The default config record. This is where much of your global configuration is setup.
-let-env config = {
+$env.config = {
   ls: {
     use_ls_colors: true # use the LS_COLORS environment variable to colorize output
     clickable_links: true # enable or disable clickable links. Your terminal has to support links.
M apps/nushell/env.nu -> apps/nushell/env.nu
diff --git a/apps/nushell/env.nu b/apps/nushell/env.nu
index 0269f3ffc9dccb2e36dfb0508298cb8f96d0c863..0cafdd22073208e63d5cd036258917bb900e94b4 100644
--- a/apps/nushell/env.nu
+++ b/apps/nushell/env.nu
@@ -19,21 +19,21 @@     $time_segment
 }
 
 # Use nushell functions to define your right and left prompt
-let-env PROMPT_COMMAND = { create_left_prompt }
-let-env PROMPT_COMMAND_RIGHT = { create_right_prompt }
+$env.PROMPT_COMMAND = { create_left_prompt }
+$env.PROMPT_COMMAND_RIGHT = { create_right_prompt }
 
 # The prompt indicators are environmental variables that represent
 # the state of the prompt
-let-env PROMPT_INDICATOR = { "〉" }
-let-env PROMPT_INDICATOR_VI_INSERT = { ": " }
-let-env PROMPT_INDICATOR_VI_NORMAL = { "〉" }
-let-env PROMPT_MULTILINE_INDICATOR = { "::: " }
+$env.PROMPT_INDICATOR = { "〉" }
+$env.PROMPT_INDICATOR_VI_INSERT = { ": " }
+$env.PROMPT_INDICATOR_VI_NORMAL = { "〉" }
+$env.PROMPT_MULTILINE_INDICATOR = { "::: " }
 
 # 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 = {
+$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) }
@@ -47,16 +47,16 @@
 # Directories to search for scripts when calling source or use
 #
 # By default, <nushell-config-dir>/scripts is added
-let-env NU_LIB_DIRS = [
+$env.NU_LIB_DIRS = [
     ($nu.config-path | path dirname | path join 'scripts')
 ]
 
 # Directories to search for plugin binaries when calling register
 #
 # By default, <nushell-config-dir>/plugins is added
-let-env NU_PLUGIN_DIRS = [
+$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')
+# $env.PATH = ($env.PATH | split row (char esep) | prepend '/some/path')
M apps/nushell/jolheiser.nu -> apps/nushell/jolheiser.nu
diff --git a/apps/nushell/jolheiser.nu b/apps/nushell/jolheiser.nu
index 4f903502cd8516506ea2df1030f4aa4008e72c40..6fbd8b3e77b1a07742e2145fb742a6cc4c2636c8 100644
--- a/apps/nushell/jolheiser.nu
+++ b/apps/nushell/jolheiser.nu
@@ -26,8 +26,8 @@ 	^nu -c $cmd
 }
 
 ## Other ##
-let-env EDITOR = hx
-let-env config = ($env.config | upsert "shell_integration" ("WEZTERM_PANE" not-in $env and "SSH_CLIENT" not-in $env))
+$env.EDITOR = hx
+$env.config = ($env.config | upsert "shell_integration" ("WEZTERM_PANE" not-in $env and "SSH_CLIENT" not-in $env))
 source ~/.config/nushell/zoxide.nu
 source ~/.config/nushell/ohmyposh.nu
 
M apps/nushell/ohmyposh.nu -> apps/nushell/ohmyposh.nu
diff --git a/apps/nushell/ohmyposh.nu b/apps/nushell/ohmyposh.nu
index 39dfcb07f8c7ad0b1640cc5ed3002a2f3ca76957..f702bff725a15f5d653bde3c6a10018226979fac 100644
--- a/apps/nushell/ohmyposh.nu
+++ b/apps/nushell/ohmyposh.nu
@@ -1,18 +1,18 @@
 export-env {
-    let-env POWERLINE_COMMAND = 'oh-my-posh'
-    let-env POSH_THEME = "~/.config/oh-my-posh/config.json"
-    let-env PROMPT_INDICATOR = ""
-    let-env POSH_PID = (random uuid)
+    $env.POWERLINE_COMMAND = 'oh-my-posh'
+    $env.POSH_THEME = "~/.config/oh-my-posh/config.json"
+    $env.PROMPT_INDICATOR = ""
+    $env.POSH_PID = (random uuid)
     # By default displays the right prompt on the first line
     # making it annoying when you have a multiline prompt
     # making the behavior different compared to other shells
-    let-env PROMPT_COMMAND_RIGHT = {''}
-    let-env NU_VERSION = (version | get version)
+    $env.PROMPT_COMMAND_RIGHT = {''}
+    $env.NU_VERSION = (version | get version)
 
     # PROMPTS
-    let-env PROMPT_MULTILINE_INDICATOR = (^oh-my-posh print secondary $"--config=($env.POSH_THEME)" --shell=nu $"--shell-version=($env.NU_VERSION)")
+    $env.PROMPT_MULTILINE_INDICATOR = (^oh-my-posh print secondary $"--config=($env.POSH_THEME)" --shell=nu $"--shell-version=($env.NU_VERSION)")
 
-    let-env PROMPT_COMMAND = {
+    $env.PROMPT_COMMAND = {
         # We have to do this because the initial value of `$env.CMD_DURATION_MS` is always `0823`,
         # which is an official setting.
         # See https://github.com/nushell/nushell/discussions/6402#discussioncomment-3466687.
M apps/nushell/zoxide.nu -> apps/nushell/zoxide.nu
diff --git a/apps/nushell/zoxide.nu b/apps/nushell/zoxide.nu
index a0c4e1b62ef23355680bd1add3d60ca11e9ed974..ea59b14b60245d9e4df332ec1ff98d452007a563 100644
--- a/apps/nushell/zoxide.nu
+++ b/apps/nushell/zoxide.nu
@@ -7,12 +7,12 @@ #
 
 # Initialize hook to add new entries to the database.
 if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
-  let-env __zoxide_hooked = true
-  let-env config = ($env | default {} config).config
-  let-env config = ($env.config | default {} hooks)
-  let-env config = ($env.config | update hooks ($env.config.hooks | default {} env_change))
-  let-env config = ($env.config | update hooks.env_change ($env.config.hooks.env_change | default [] PWD))
-  let-env config = ($env.config | update hooks.env_change.PWD ($env.config.hooks.env_change.PWD | append {|_, dir|
+  $env.__zoxide_hooked = true
+  $env.config = ($env | default {} config).config
+  $env.config = ($env.config | default {} hooks)
+  $env.config = ($env.config | update hooks ($env.config.hooks | default {} env_change))
+  $env.config = ($env.config | update hooks.env_change ($env.config.hooks.env_change | default [] PWD))
+  $env.config = ($env.config | update hooks.env_change.PWD ($env.config.hooks.env_change.PWD | append {|_, dir|
     zoxide add -- $dir
   }))
 }
M machines/common/default.nix -> machines/common/default.nix
diff --git a/machines/common/default.nix b/machines/common/default.nix
index 3fb310e92234f9911b5002ede171ddb893cc4cd3..7aadb458b7ed3252f22bd5e07a3cd13827dc91eb 100644
--- a/machines/common/default.nix
+++ b/machines/common/default.nix
@@ -64,5 +64,5 @@   environment = {
     systemPackages = with pkgs; [podman podman-compose podman-tui];
   };
 
-  fonts.fonts = with pkgs; [(nerdfonts.override {fonts = ["JetBrainsMono"];})];
+  fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["JetBrainsMono"];})];
 }