From 00d86529d44b1b9c7992a99cde4154d69254735c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 16 Mar 2024 08:26:02 -0400 Subject: .bashrc: Don't run-parts under chroot --- diff --git a/.bashrc b/.bashrc index d53755a..f378a33 100644 --- a/.bashrc +++ b/.bashrc @@ -44,6 +44,8 @@ fi # Set DISPLAY for SSH sessions. { read -r DISPLAY 0<~/.xdisplay && export DISPLAY; } 2>/dev/null || : -for f in $(run-parts --list ~/.bashrc.d); do - . "${f}" -done +if ! [ -r /etc/debian_chroot ]; then + for f in $(run-parts --list ~/.bashrc.d); do + . "${f}" + done +fi -- cgit v0.9.1