kirit-magic-line

It's

cd `dirname $0`

The $0 is the script's name. By calling dirname command, the parent directory of the script is returned. cding to that folder happens in the context of the script. With this, the script can be executed in any path and still be able to access other scripts using relative path (of the script itself). Nice trick Kirit! (y)

ref: https://github.com/KayEss/django-slumber/blob/master/runtests

[13:23:21] Likit Kirit: The slightly more modern way of doing that is: cd $(dirname $0) <-- no backticks neeeded makes it a bit easier to read on the screen