Skip to content

Commit

Permalink
modified environment so that the setup.zsh is sourced
Browse files Browse the repository at this point in the history
  • Loading branch information
akoerner1 committed Dec 5, 2024
1 parent 0e6a15b commit 738e1ef
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 78 deletions.
2 changes: 1 addition & 1 deletion adore_cli.mk
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ adore_cli_run:
make adore_cli_start; \
fi
@echo "Executing command in container ${ADORE_CLI_CONTAINER_NAME}: $(cmd)"
docker exec --workdir /tmp/adore -it ${ADORE_CLI_CONTAINER_NAME} bash -c "source setup.sh && $(cmd)"
docker exec --workdir /tmp/adore -it ${ADORE_CLI_CONTAINER_NAME} zsh -c "source ~/.zshrc && $(cmd)"


.PHONY: adore_cli_start_headless
Expand Down
1 change: 1 addition & 0 deletions docker/files/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ PROMPT='%B%F{grey}%F{cyan}ADORe CLI:%F %{$fg_bold[green]%}%c %{$reset_color%}$(g
alias help='bash /tmp/adore_cli/tools/adore_cli_help.sh'
source /opt/ros/${ROS_DISTRO}/setup.zsh
if [ -f /tmp/adore/setup.sh ]; then
export SHELL=zsh
source /tmp/adore/setup.sh
fi
3 changes: 3 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SCRIPT_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
ROS2_WORKSPACE_DIRECTORY="$(realpath "${SCRIPT_DIRECTORY}/ros2_workspace")"
source /opt/ros/${ROS_DISTRO}/setup.zsh
2 changes: 1 addition & 1 deletion tools/adore_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ bash "/tmp/adore_cli/tools/git_repo_status.sh"
bash "/tmp/adore_cli/tools/requirements_file_change_status.sh"

printf "\n"
zsh

zsh
76 changes: 0 additions & 76 deletions tools/run_test_scenarios.sh

This file was deleted.

0 comments on commit 738e1ef

Please sign in to comment.