|
|
|
@ -60,7 +60,14 @@ $env.NU_PLUGIN_DIRS = [
|
|
|
|
|
|
|
|
|
|
$env.EDITOR = "hx"
|
|
|
|
|
{{#if flags.unix}}
|
|
|
|
|
$env.SSH_AUTH_SOCK = $"($env.XDG_RUNTIME_DIR)/ssh-agent.socket"
|
|
|
|
|
let agent_sock = $"($env.XDG_RUNTIME_DIR)/ssh-agent.socket"
|
|
|
|
|
let openssh_sock = $"($env.XDG_RUNTIME_DIR)/openssh_agent"
|
|
|
|
|
|
|
|
|
|
if ($agent_sock | path exists) {
|
|
|
|
|
$env.SSH_AUTH_SOCK = $agent_sock
|
|
|
|
|
} else if ($openssh_sock | path exists) {
|
|
|
|
|
$env.SSH_AUTH_SOCK = $openssh_sock
|
|
|
|
|
}
|
|
|
|
|
# :$PATH# 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')
|
|
|
|
|
{{#if-installed most}}
|
|
|
|
|