Skip to content

Commit

Permalink
Merge pull request #814 from wkentaro/rename-rossetrobot
Browse files Browse the repository at this point in the history
rename rossetrobot -> rossetmaster, keep rossetrobot for backword compatibility
  • Loading branch information
k-okada committed Mar 6, 2015
2 parents a1f0974 + 75a8204 commit f496890
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jsk_tools/src/zshrc.ros
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- mode: shell-script -*-

function rossetrobot() { # 自分のよく使うロボットのhostnameを入れる
function rossetmaster() { # 自分のよく使うロボットのhostnameを入れる
if [ "${ZSH_REMATCH}" = "" ]; then
export ZSH_REMATCH="${PS1}"
fi
Expand All @@ -13,9 +13,13 @@ function rossetrobot() { # 自分のよく使うロボットのhostnameを入れ
export PS1="%{$fg[yellow]%}[$ROS_MASTER_URI]%{$reset_color%} ${PS1}"
echo -e "\e[1;31mset ROS_MASTER_URI to $ROS_MASTER_URI\e[m"
}
function rossetrobot() {
echo -e "\e[1;31m *** rossetrobot is obsoleted, use rossetmaster ***\e[m"
rossetmaster $@
}

function rossetlocal() {
rossetrobot localhost
rossetmaster localhost
if [[ "${PS1}" =~ .{4}\[http://.*:.*\].*$ ]] ; then
export PS1="${ZSH_REMATCH}"
fi
Expand Down

0 comments on commit f496890

Please sign in to comment.