Remove ros2 stuff

This commit is contained in:
Alexander Rosenberg 2025-03-18 22:53:12 +09:00
parent 2ff695ea43
commit ffb23c98fc
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
2 changed files with 0 additions and 42 deletions

@ -316,11 +316,6 @@ fi
# Platform specific stuff
[ -f /usr/bin/pacman ] && source "${ZSH_CONFIG_DIR}/arch.zsh"
# Ros2 instll on arch
if [[ -v ZSH_ROS2_ROOT ]]; then
source "${ZSH_CONFIG_DIR}/lazy-ros2.zsh"
fi
# FZF Integration
load_plugin fzf-tab
# Disable sort when completing `git checkout`

@ -1,37 +0,0 @@
# Lazy-load ros2 stuff
(( ${+ZSH_ROS2_ROOT} )) || return
# Define as a function so it can be overridden for speed
function zsh-load-ros2() {
source "${ZSH_ROS2_ROOT}/setup.zsh"
}
local defined=()
local file
for file in "${ZSH_ROS2_ROOT}/bin/"*; do
local base="${file:t}"
hash -- "${base}" 2>/dev/null && continue
defined+=("${base}")
done
local undef_args=() def
for def in ${defined}; do
undef_args+=("${(q)def}")
done
local exec
for exec in ${defined}; do
eval "
function \${(q)exec} {
printf 'Setting up ros2 with \"%s\"...\n\n' \\
\"\${(q)ZSH_ROS2_ROOT%/}/setup.zsh\"
unfunction ${undef_args}
zsh-load-ros2 ||
{ echo 'Failed to load ros2 libraries!'; return }
(( \${#} == 0 )) && ${(q)exec} || ${(q)exec} \"\${@}\"
}"
done
unset exec def file defined undef_args