From 109c6b20d7714aa944cf49a45cfaf0eecc0c843a Mon Sep 17 00:00:00 2001 From: swaggboi Date: Fri, 4 Apr 2025 14:48:47 -0400 Subject: [PATCH] Avoid running this unless in POSIX mode --- my_home/.bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/my_home/.bashrc b/my_home/.bashrc index 69be646..99493a3 100644 --- a/my_home/.bashrc +++ b/my_home/.bashrc @@ -81,4 +81,6 @@ export PS1='\u@\h:\w\$ ' ## Misc ## # Prevent line wrapping mess -shopt -s checkwinsize +if command -v shopt > /dev/null 2>&1; then + shopt -s checkwinsize +fi