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