Sha256: 3c5ecca4e1a6c940789960f3e08a079d1cbbec65b19103c342eacd5eaabc5c2a

Contents?: true

Size: 762 Bytes

Versions: 4

Compression:

Stored size: 762 Bytes

Contents

# this file is sourced from `.bash_profile` to eval the rash profile
# source in the environment

# figure out what dir we're in
# from http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
  DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

# run the script
RASH_OUTPUT="$($DIR/../bin/rash profile)"
# TODO: should we check the exit code here?
eval "$RASH_OUTPUT"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nrser-rash-0.2.3 bash/source-profile.sh
nrser-rash-0.2.2 bash/source-profile.sh
nrser-rash-0.2.1 bash/source-profile.sh
nrser-rash-0.2.0 bash/source-profile.sh