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

if [ -n "$ZSH_VERSION" ]; then
    DIR=$(dirname $0:A)
    if [ -f $DIR/goto-zsh.sh ]; then
        source $DIR/goto-zsh.sh
    else
        echo "Inside zsh but could not find 'goto-zsh.sh!' inside $DIR"
        echo "To remove this comment you should edit .zshrc"
    fi
elif [ -n "$BASH_VERSION" ]; then
    DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
    if [ -f $DIR/goto-zsh.sh ]; then
        source $DIR/goto-bash.sh
    else
        echo "Inside bash but could not find 'goto-bash.sh!' inside $DIR"
        echo "To remove this comment you should edit .bashrc"
    fi
fi
