Skip to content

Commit

Permalink
fix ros2 prompt bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mqcmd196 committed Aug 16, 2024
1 parent 686edf9 commit d00cb7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/zsh/config/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
# wifi # wifi speed
# example # example user-defined segment (see prompt_example function below)
ros1_network
ros2_visibility
ros2_network
)

# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
Expand Down Expand Up @@ -1626,9 +1626,9 @@
fi
}

function prompt_ros2_visibility(){
if [[ -n "$ROS_LOCALHOST_ONLY" ]]; then
p10k segment -f 202 -i '🤖 LOCALHOST_ONLY:' -t $ROS_DOMAIN_ID
function prompt_ros2_network(){
if [[ "$ROS_LOCALHOST_ONLY" -eq 1 ]]; then
p10k segment -f 202 -i '🤖 LOCALHOST_ONLY'
fi
if [[ -n "$ROS_DOMAIN_ID" ]]; then
p10k segment -f green -i '🤖 DOMAIN_ID:' -t $ROS_DOMAIN_ID
Expand Down

0 comments on commit d00cb7e

Please sign in to comment.