Skip to content

Commit

Permalink
Add setup scripts for Z shell
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindbattaje committed Aug 23, 2018
1 parent e065599 commit c519d69
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autorally_util/setupEnvLocal.zsh
@@ -0,0 +1,11 @@
#!/usr/bin/env zsh

# Setup some variables
export ROS_MASTER_URI=http://localhost:11311
export MASTER_HOSTNAME=localhost
export HOSTNAME=localhost
export ROSLAUNCH_SSH_UNKNOWN=0

# Source the setupEnvVariables.sh from the same directory as this file
DIR=$(builtin cd -q "`dirname "$0"`" > /dev/null && pwd)
emulate -R sh -c 'source "$DIR/setupEnvVariables.sh"'
12 changes: 12 additions & 0 deletions autorally_util/setupEnvRemote.zsh
@@ -0,0 +1,12 @@
#!/usr/bin/env zsh

# Setup some variables
export ROS_MASTER_URI=http://COMPUTE_BOX_HOSTNAME:11311
export MASTER_HOSTNAME=COMPUTE_BOX_HOSTNAME
export MASTER_USER=COMPUTE_BOX_USERNAME
export HOSTNAME=$(hostname)
export ROSLAUNCH_SSH_UNKNOWN=1

# Source the setupEnvVariables.sh from the same directory as this file
DIR=$(builtin cd -q "`dirname "$0"`" > /dev/null && pwd)
emulate -R sh -c 'source "$DIR/setupEnvVariables.sh"'

0 comments on commit c519d69

Please sign in to comment.