Merge pull request #76 from soplakanets/master

sh.snippets
This commit is contained in:
Honza Pokorny 2012-02-08 06:39:10 -08:00
commit 97dd2011e1

View File

@ -1,6 +1,6 @@
# #!/bin/bash # Shebang. Executing bash via /usr/bin/env makes scripts more portable.
snippet #! snippet #!
#!/bin/bash #!/usr/bin/env bash
snippet if snippet if
if [[ ${1:condition} ]]; then if [[ ${1:condition} ]]; then
@ -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 )"