summaryrefslogtreecommitdiff
path: root/mut/nushell
diff options
context:
space:
mode:
Diffstat (limited to 'mut/nushell')
-rw-r--r--mut/nushell/config.nu7
-rw-r--r--mut/nushell/env.nu2
2 files changed, 8 insertions, 1 deletions
diff --git a/mut/nushell/config.nu b/mut/nushell/config.nu
index c9951a8..69b48d7 100644
--- a/mut/nushell/config.nu
+++ b/mut/nushell/config.nu
@@ -1,3 +1,4 @@
+try {xset r rate 230 30}
if ($env | default "" DOCKER_NAME | get DOCKER_NAME | is-empty) {
try {pnsh-nvim}
}
@@ -912,3 +913,9 @@ let pistarchio_dir = $"($env.HOME)/Programming/Pionative/pistarchio"
$env.PISTARCHIO_STACKS_DIR = $pistarchio_dir + "/stacks"
$env.PISTARCHIO_LIBRARY_DIR = $pistarchio_dir + "/library"
$env.PISTARCHIO_VENDOR_DESTINATION_DIR = $pistarchio_dir + "/../clients"
+
+try {
+ if (uname | get "operating-system") == "Darwin" {
+ $env.PATH = ["/opt/homebrew/bin" "/opt/X11/bin" "/opt/local/bin" "/opt/local/sbin"] ++ $env.PATH
+ }
+}
diff --git a/mut/nushell/env.nu b/mut/nushell/env.nu
index 670c8d1..35fb30f 100644
--- a/mut/nushell/env.nu
+++ b/mut/nushell/env.nu
@@ -109,7 +109,7 @@ mkdir ~/.cache/zoxide
zoxide init nushell --cmd=cd | save --force ~/.cache/zoxide.nu
starship init nu | save --force ~/.cache/starship.nu
-if not ("/var/run/docker.sock" | path exists) {
+if (not ("/var/run/docker.sock" | path exists)) and (not ((uname | get operating-system) == "Darwin")) {
$env.DOCKER_HOST = $"unix://($env | default $"/run/($env.USER)" XDG_RUNTIME_DIR | get XDG_RUNTIME_DIR)/docker.sock"
}