Skip to content

Commit

Permalink
Merge pull request #884 from wkentaro/update-catkin-shell
Browse files Browse the repository at this point in the history
[jsk_tools] See CATKIN_SHELL to find shell
  • Loading branch information
garaemon committed Apr 27, 2015
2 parents 1357503 + b47ca89 commit 183f22c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsk_tools/env-hooks/99.jsk_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ _update_prompt() {
fi
elif [ "$master_host" != "" ]; then
local ros_prompt="[$ROS_MASTER_URI][$ROS_IP]"
if [ "$(basename $SHELL)" = "sh" ]; then
if [ "$CATKIN_SHELL" = "sh" ]; then
export PS1="$ros_prompt ${WITHOUT_ROS_PROMPT}"
elif [ "$(basename $SHELL)" = "bash" ]; then
elif [ "$CATKIN_SHELL" = "bash" ]; then
export PS1="\[\033[00;31m\]$ros_prompt\[\033[00m\] ${WITHOUT_ROS_PROMPT}"
elif [ "$(basename $SHELL)" = "zsh" ]; then
elif [ "$CATKIN_SHELL" = "zsh" ]; then
export PS1="%{$fg[red]%}$ros_prompt%{$reset_color%} ${WITHOUT_ROS_PROMPT}"
fi
fi
Expand Down

0 comments on commit 183f22c

Please sign in to comment.