From 440157da04f3c156cf751e7b6a613261536d54d1 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 9 Mar 2025 00:37:15 +0100 Subject: [PATCH] Don't add aliases when running inside container --- aliases.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/aliases.sh b/aliases.sh index 378f60f..59bbbfb 100644 --- a/aliases.sh +++ b/aliases.sh @@ -1,7 +1,9 @@ # Copy this file to ~/.bashrc./ for some buildenv aliases. # -alias b='toolbox run -c creatures-buildenv b' -alias bdep='toolbox run -c creatures-buildenv bdep' -alias bpkg='toolbox run -c creatures-buildenv bpkg' -alias yarn='toolbox run -c creatures-buildenv yarn' +if [ ! -f "/run/.toolboxenv" ]; then + alias b='toolbox run -c creatures-buildenv b' + alias bdep='toolbox run -c creatures-buildenv bdep' + alias bpkg='toolbox run -c creatures-buildenv bpkg' + alias yarn='toolbox run -c creatures-buildenv yarn' +fi