aboutsummaryrefslogtreecommitdiff
path: root/src/bash/linux_bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'src/bash/linux_bashrc')
-rw-r--r--src/bash/linux_bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bash/linux_bashrc b/src/bash/linux_bashrc
new file mode 100644
index 0000000..9003c5d
--- /dev/null
+++ b/src/bash/linux_bashrc
@@ -0,0 +1,11 @@
+#
+# ~~~ bash config
+#
+
+# exit early if not interactive
+if [[ $- != *i* ]]; then
+ return
+fi
+
+# switch to nushell
+[ -x /usr/bin/nu ] && SHELL=/usr/bin/nu exec /usr/bin/nu