summaryrefslogtreecommitdiff
path: root/toolchain/environment-setup
blob: efab8ca2c624c1a75152ec66a8a0f88345f7ecaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./environment-setup" ]; then
  echo "Error: This script needs to be sourced. Please run as \". ./environment-setup\""
  exit 1
else
  if [ -n "$BASH_SOURCE" ]; then
    SCRIPT_PATH="`dirname $BASH_SOURCE`"
  fi
  pushd $SCRIPT_PATH
  SDK_PATH=$PWD
  popd > /dev/null
  export PATH=$SDK_PATH/arm-toolchain/bin:$PATH
fi
export PS1="\[\e[32;1m\][p2m]\[\e[0m\]:\w> "