Making Your Shell Scripts Run From Anywhere

Analysis
Feb 10, 20091 min

How many times have you had to go to a specific directory to launch an application or set several environment variables for an application to be able to find itself and run? Well, here’s a simple trick to add to your shell scripts so that they’re self-contained with no external requirements or editing.