aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nushell/020_config.nu13
-rw-r--r--src/nushell/020_environment.nu24
2 files changed, 37 insertions, 0 deletions
diff --git a/src/nushell/020_config.nu b/src/nushell/020_config.nu
new file mode 100644
index 0000000..10fddd6
--- /dev/null
+++ b/src/nushell/020_config.nu
@@ -0,0 +1,13 @@
+#
+# ~~~ nushell config
+#
+
+#
+# ~~~ environment
+use environment.nu
+
+#
+# ~~~ theming
+
+# hide banner
+$env.config.show_banner = false
diff --git a/src/nushell/020_environment.nu b/src/nushell/020_environment.nu
new file mode 100644
index 0000000..6b23615
--- /dev/null
+++ b/src/nushell/020_environment.nu
@@ -0,0 +1,24 @@
+#
+# ~~~ nushell env config
+#
+
+export-env {
+
+ #
+ # ~~~ system
+
+ # setup editor
+ $env.EDITOR = "nvim"
+
+ # setup ssh agent
+ $env.SSH_AUTH_SOCK = $"($env.XDG_RUNTIME_DIR)/ssh-agent.socket"
+
+ # setup gpg agent
+ $env.GPG_TTY = ^tty
+
+ #
+ # ~~~ theming
+
+ # setup qt
+ $env.QT_QPA_PLATFORMTHEME = "qt6ct"
+}