Skip to content

Instantly share code, notes, and snippets.

View NovoG93's full-sized avatar

Georg No NovoG93

View GitHub Profile
@NovoG93
NovoG93 / k8s.bashrc
Created April 25, 2024 08:38
k8s.bashrc
if [ -f /usr/bin/kubectl ]; then
source <(kubectl completion bash)
fi
if [ -f /usr/bin/kubeadm ]; then
source <(kubeadm completion bash)
fi
if [ -f /usr/bin/helm ]; then
source <(helm completion bash)
fi
@NovoG93
NovoG93 / .bash_aliases
Created April 21, 2022 07:57
Switching between ROS1 and ROS2 in .bashrc
srROS1()
{
unset ROS_VERSION ROS_PYTHON_VERSION ROS_DOMAIN_ID ROS_LOCALHOST_ONLY ROS_DISTRO
source /opt/ros/noetic/setup.bash
source /home/georg/catkin_ws/devel/setup.bash
source /home/georg/paper_ws/devel/setup.bash
touch /tmp/ros1.tmp
rm -f /tmp/ros2.tmp || true
}