Quartus/Linux: Setting PATH and environment for command-line
The classic way:
$ export QUARTUS_ROOTDIR=/path/to/altera/15.1/quartus $ . $QUARTUS_ROOTDIR/adm/qenv.sh
Or open a shell (will set path, but not a full environment):
$ /path/to/altera/15.1/nios2eds/nios2_command_shell.sh
This is good for compiling for NIOS etc.