diff options
| author | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-19 13:03:40 +0100 |
|---|---|---|
| committer | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-19 13:11:01 +0100 |
| commit | e42279a08a4d7ff340a6acf4881279a7617a3c2d (patch) | |
| tree | 9516644bd19b232c7099b66bf928c11e334032f6 /mut/nushell | |
| parent | 4ebbd78747937e6084c903682569b093dfbab854 (diff) | |
nushell for darwin
Diffstat (limited to 'mut/nushell')
| -rw-r--r-- | mut/nushell/config.nu | 7 | ||||
| -rw-r--r-- | mut/nushell/env.nu | 2 |
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" } |
