From c19ae248bbb125c354a448f42ee2c9504c4f698f Mon Sep 17 00:00:00 2001 From: Autumn Date: Fri, 15 May 2026 17:50:57 +0100 Subject: [conf/bash] added bash config --- src/bash/bash_profile | 8 ++++++++ src/bash/linux_bashrc | 11 +++++++++++ src/bash/mac_bashrc | 11 +++++++++++ 3 files changed, 30 insertions(+) create mode 100644 src/bash/bash_profile create mode 100644 src/bash/linux_bashrc create mode 100644 src/bash/mac_bashrc (limited to 'src/bash') diff --git a/src/bash/bash_profile b/src/bash/bash_profile new file mode 100644 index 0000000..6974261 --- /dev/null +++ b/src/bash/bash_profile @@ -0,0 +1,8 @@ +# +# ~~~ bash profile +# + +# load bashrc +if [[ -f ~/.bashrc ]]; then + . ~/.bashrc +fi 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 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 -- cgit v1.3