# Execute this file in the context of your shell, such as with # . @EMC2_HOME@/scripts/emc-environment # and your shell environment will be properly configured to run commands like # comp, halcmd, halrun, iosh, and python with the emc modules available. case "$0" in emc-environment|*/emc-environment) cat < /dev/null 2>&1; then MANPATH=$EMC2_HOME/docs/man:"$(manpath)" else MANPATH=$EMC2_HOME/docs/man:/usr/local/man:/usr/local/share/man:/usr/share/man fi else MANPATH=$EMC2_HOME/docs/man:"$MANPATH" fi # TODO: if these completion directives give trouble for any versions # of bash actively in use, protect them with checks of BASH_VERSINFO if [ $BASH_VERSINFO -eq 2 ]; then complete -o dirnames -f -X '!*.ini' emc axis mdi complete -o dirnames -f -X '!*.hal' halrun halcmd complete -W 'start stop restart status' realtime else complete -o plusdirs -f -X '!*.ini' emc axis mdi complete -o plusdirs -f -X '!*.hal' halrun halcmd complete -W 'start stop restart status' realtime fi export PYTHONPATH MANPATH