summaryrefslogtreecommitdiff
path: root/mut/nushell/env.nu
diff options
context:
space:
mode:
authorroot <root@localhost>2025-01-21 08:43:49 +0000
committerMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-21 14:03:00 +0100
commitde6aa72099a2b8618562c2ab4230a2c2044655d2 (patch)
tree1c082d8f4ba84e3eed492315775a26ca2adf34df /mut/nushell/env.nu
parent6777625ee34666986e2f38f5cf8198fdb360ea55 (diff)
do symlinks outside of nix
Diffstat (limited to 'mut/nushell/env.nu')
-rw-r--r--mut/nushell/env.nu51
1 files changed, 27 insertions, 24 deletions
diff --git a/mut/nushell/env.nu b/mut/nushell/env.nu
index dbb578d..ac0ac47 100644
--- a/mut/nushell/env.nu
+++ b/mut/nushell/env.nu
@@ -120,28 +120,31 @@ if (not ("/var/run/docker.sock" | path exists)) and (not ((uname | get operating
$env.XDG_CACHE_HOME = $"($env.HOME)/.cache"
$env.XDG_DATA_HOME = $"($env.HOME)/.local/share"
+$env.XDG_CONFIG_HOME = $"($env.HOME)/.config"
-do --env {
- let ssh_agent_file = (
- $nu.temp-path | path join $"ssh-agent-($env.USER).nuon"
- )
-
- if ($ssh_agent_file | path exists) {
- let ssh_agent_env = open ($ssh_agent_file)
- if (ps | where pid == ($ssh_agent_env.SSH_AGENT_PID | into int) | is-not-empty) {
- load-env $ssh_agent_env
- return
- } else {
- rm $ssh_agent_file
- }
- }
-
- let ssh_agent_env = ^ssh-agent -c
- | lines
- | first 2
- | parse "setenv {name} {value};"
- | transpose --header-row
- | into record
- load-env $ssh_agent_env
- $ssh_agent_env | save --force $ssh_agent_file
-}
+# if not ("/.dockerenv" | path exists) {
+# do --env {
+# let ssh_agent_file = (
+# $nu.temp-path | path join $"ssh-agent-($env.USER).nuon"
+# )
+#
+# if ($ssh_agent_file | path exists) {
+# let ssh_agent_env = open ($ssh_agent_file)
+# if (ps | where pid == ($ssh_agent_env.SSH_AGENT_PID | into int) | is-not-empty) {
+# load-env $ssh_agent_env
+# return
+# } else {
+# rm $ssh_agent_file
+# }
+# }
+#
+# let ssh_agent_env = ssh-agent -c
+# | lines
+# | first 2
+# | parse "setenv {name} {value};"
+# | transpose --header-row
+# | into record
+# load-env $ssh_agent_env
+# $ssh_agent_env | save --force $ssh_agent_file
+# }
+# }