Add 'sdir' snippet. Useful for sourcing configs, etc.

This commit is contained in:
Serhiy Oplakanets 2012-02-08 16:23:49 +02:00
parent 1fa2a713e1
commit 950d3f3401

View File

@ -38,3 +38,6 @@ snippet go
${4:#staments};; ${4:#staments};;
esac esac
done done
# Set SCRIPT_DIR variable to directory script is located.
snippet sdir
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"