Add non-interactive check back

This commit is contained in:
Ryan Hughes
2025-10-22 20:59:26 -04:00
parent bddccf30cb
commit 83d4349ea1
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
# If not running interactively, don't do anything (leave this at the top of this file)
[[ $- != *i* ]] && return
# All the default Omarchy aliases and functions # All the default Omarchy aliases and functions
# (don't mess with these directly, just overwrite them here!) # (don't mess with these directly, just overwrite them here!)
source ~/.local/share/omarchy/default/bash/rc source ~/.local/share/omarchy/default/bash/rc

7
migrations/1761180745.sh Normal file
View File

@@ -0,0 +1,7 @@
echo "Ensure interactive shell check is at the top of .bashrc"
BASHRC="$HOME/.bashrc"
if [ -f "$BASHRC" ] && ! grep -q '\[\[ $- != \*i\* \]\] && return' "$BASHRC"; then
sed -i '1i# If not running interactively, don'\''t do anything (leave this at the top of this file)\n[[ $- != *i* ]] && return\n' "$BASHRC"
fi