# This file is meant to be sourced
# Entrypoint for any application on unix

if [ -n "$ZSH_VERSION" ]; then
    __thisdir=${0:a:h}
    if [ -f $__thisdir/goto-zsh.sh ]; then
        source $__thisdir/goto-zsh.sh
    else
        echo "Inside zsh but could not find 'goto-zsh.sh!'"
        echo "To remove this comment you should edit .zshrc"
	      echo "and remove any reference to goto"
    fi
elif [ -n "$BASH_VERSION" ]; then
    __thisdir="$(dirname "${BASH_SOURCE[0]}")"
    if [ -f $__thisdir/goto-bash.sh ]; then
        source $__thisdir/goto-bash.sh
    else
        echo "Inside bash but could not find 'goto-bash.sh!'"
        echo "To remove this comment you should edit .bashrc"
	echo "and remove any reference to goto"
    fi
fi
