diff --git a/.devcontainer/.bashrc b/.devcontainer/.bashrc index 967fa144bbb..898a2f0cdba 100644 --- a/.devcontainer/.bashrc +++ b/.devcontainer/.bashrc @@ -10,4 +10,13 @@ fi if [ -d "$WORKSPACE_DIR/tools/bsim" ]; then export BSIM_OUT_PATH="$WORKSPACE_DIR/tools/bsim/" export BSIM_COMPONENTS_PATH="$WORKSPACE_DIR/tools/bsim/components/" -fi \ No newline at end of file +fi + +west() { + if [[ "$1" == "init" && "$*" != *" -l "* ]]; then + echo "STOP: Are you sure you don't want 'west init -l app/'?" + echo "Run 'command west $*' if you really meant it." + else + command west "$@" + fi +}