Skip to content
Snippets Groups Projects
Commit 349d4836 authored by Montaño Sarria, Andres Felipe's avatar Montaño Sarria, Andres Felipe
Browse files

Add support to zsh into devcontainer

parent 830996b0
No related branches found
No related tags found
No related merge requests found
...@@ -29,9 +29,9 @@ WORKDIR /home/$USERNAME ...@@ -29,9 +29,9 @@ WORKDIR /home/$USERNAME
# ******************************************************** # ********************************************************
# [Optional] Clone dotfiles and apply configuration # [Optional] Clone dotfiles and apply configuration
# RUN git clone https://github.com/andsens/homeshick.git /home/$USERNAME/.homesick/repos/homeshick \ RUN git clone https://github.com/andsens/homeshick.git /home/$USERNAME/.homesick/repos/homeshick \
# && /home/$USERNAME/.homesick/repos/homeshick/bin/homeshick clone anfemosa/dotfiles \ && /home/$USERNAME/.homesick/repos/homeshick/bin/homeshick clone anfemosa/dotfiles \
# && /home/$USERNAME/.homesick/repos/homeshick/bin/homeshick -f link dotfiles && /home/$USERNAME/.homesick/repos/homeshick/bin/homeshick -f link dotfiles
CMD ["${SHELL}"] CMD ["${SHELL}"]
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
"build": { "build": {
"dockerfile": "Dockerfile", "dockerfile": "Dockerfile",
"args": { "args": {
"USERNAME": "andres" "USERNAME": "andres",
"SHELL": "/bin/zsh"
} }
}, },
"workspaceFolder": "/home/ws", "workspaceFolder": "/home/ws",
......
...@@ -7,11 +7,12 @@ ...@@ -7,11 +7,12 @@
"label": "colcon: build (debug)", "label": "colcon: build (debug)",
"type": "shell", "type": "shell",
"command": [ "command": [
"source /opt/ros/humble/setup.zsh;", "source /opt/ros/humble/setup.${ext};",
"colcon build", "colcon build",
"--symlink-install", "--symlink-install",
"--cmake-args -DCMAKE_BUILD_TYPE=Debug", "--cmake-args -DCMAKE_BUILD_TYPE=Debug",
"--packages-skip allegro_hand_weiss" "--packages-skip allegro_hand_weiss;",
"source ${workspaceFolder}/install/setup.${ext};"
], ],
"problemMatcher": [], "problemMatcher": [],
"group": { "group": {
...@@ -23,10 +24,11 @@ ...@@ -23,10 +24,11 @@
"label": "colcon: build", "label": "colcon: build",
"type": "shell", "type": "shell",
"command": [ "command": [
"source /opt/ros/humble/setup.zsh;", "source /opt/ros/humble/setup.${ext};",
"colcon build", "colcon build",
"--symlink-install", "--symlink-install",
"--packages-skip allegro_hand_weiss" "--packages-skip allegro_hand_weiss",
"source ${workspaceFolder}/install/setup.${ext};"
], ],
"problemMatcher": [], "problemMatcher": [],
"group": { "group": {
...@@ -45,12 +47,19 @@ ...@@ -45,12 +47,19 @@
"label": "colcon: test", "label": "colcon: test",
"type": "shell", "type": "shell",
"command": [ "command": [
"source /opt/ros/humble/setup.zsh;", "source /opt/ros/humble/setup.${ext};",
"source install/setup.zsh;", "source install/setup.${ext};",
"colcon test", "colcon test",
"--packages-select <package-name>", "--packages-select <package-name>",
"--event-handlers console_direct+;" "--event-handlers console_direct+;"
] ]
} },
{
"label": "workspace: source",
"type": "shell",
"command": [
"source ${workspaceFolder}/install/setup.${ext};"
]
},
] ]
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment