Compare commits

..

No commits in common. "58da9200fc402fdcf27d9d382afd2f542b57d2a6" and "9962c7159b66e042a6260c332de2cd66ed5d3457" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -260,7 +260,7 @@ source "${ZSH_CONFIG_DIR}/emacs-bookmark.zsh"
# Ros2 instll on arch # Ros2 instll on arch
if [[ -d /opt/ros/humble/ ]]; then if [[ -d /opt/ros/humble/ ]]; then
ZSH_ROS2_ROOT=/opt/ros/humble/ # ZSH_ROS2_ROOT=/opt/ros/humble/
source "${ZSH_CONFIG_DIR}/lazy-ros2.zsh" source "${ZSH_CONFIG_DIR}/lazy-ros2.zsh"
fi fi

View File

@ -14,13 +14,12 @@ function __zsh_load_ros2 {
export PYTHONPATH="/opt/ros/humble/lib/python3.13/dist-packages/:/opt/ros/humble/lib/python3.13/site-packages:${PYTHONPATH}" export PYTHONPATH="/opt/ros/humble/lib/python3.13/dist-packages/:/opt/ros/humble/lib/python3.13/site-packages:${PYTHONPATH}"
} }
(( ${+ZSH_ROS2_ROOT} )) || return # (( ${+ZSH_ROS2_ROOT} )) || return
local defined=() local defined=()
local file local file
for file in "${ZSH_ROS2_ROOT}/bin/"*; do for file in "${ZSH_ROS2_ROOT}/bin/"*; do
echo Checked $file
local base="${file:t}" local base="${file:t}"
hash -- "${base}" 2>/dev/null && continue hash -- "${base}" 2>/dev/null && continue
defined+=("${base}") defined+=("${base}")
@ -33,7 +32,6 @@ done
local exec local exec
for exec in ${defined}; do for exec in ${defined}; do
echo Defined $exec
eval " eval "
function \${(q)exec} { function \${(q)exec} {
printf 'Setting up ros2 with \"%s\"...\n\n' \\ printf 'Setting up ros2 with \"%s\"...\n\n' \\