X
9412

The idl_setup Script For The Bash Shell


Published below for cutting and pasting is the standard UNIX idl_setup* script, reformatted specifically with Bash shell syntax. This will be particularly useful for Linux users; Linux tends to install the Bash shell as the default shell.
Distributed with every IDL for UNIX are two versions of our idl_setup* script. This script is used to set several environment variables, search paths and aliases. The versions currently included in IDL are for your choice of C shell or Korn shell. Both of these throw multiple errors when executed in a Bash shell. The below script reformats this script in strictly Bash syntax. Right after the displayed contents, you will find a link to this new "idl_setup.bash" file. If you right-click on that link and select 'Save As...' from the pop-up menu, you can store this file on your local host. We recommend you store this file in the same directory as 'idl_setup' and 'idl_setup.ksh' (e.g., in IDL 6.1, '.../idl_6.1/bin/').

Note that the value of IDL_DIR is version specific, and would need to be updated each time you install an IDL upgrade!

# Bash shell commands to define IDL environment variables and aliases.
#
# This script can be used by IDL users, who use Bash as their interactive
# shell. It defines the environment variables and aliases required by IDL
# related commands (idl, idlde, idlhelp, idldemo), in the case that
# symbolic links to the default directory (/usr/local/rsi/idl) are not
# being used.
#
# Bash users should run idl_setup from their .profile file
# using the following command:
#
# . /usr/local/rsi/idl_6.1/bin/idl_setup.bash
#
RSI_DIR=/usr/local/rsi
IDL_DIR=/usr/local/rsi/idl_6.1
export IDL_DIR RSI_DIR
IDL_PATH="
"
export IDL_PATH
alias rsilicense=$IDL_DIR/bin/rsilicense
alias idl=$IDL_DIR/bin/idl
alias idlde=$IDL_DIR/bin/idlde
alias idldeclient=$IDL_DIR/bin/idldeclient
alias idlhelp=$IDL_DIR/bin/idlhelp
alias idlman=$IDL_DIR/bin/idlman
alias idlrpc=$IDL_DIR/bin/idlrpc
alias idldemo=$IDL_DIR/bin/idldemo

Right-click->'Save as...' to Download idl_setup.bash.