Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
snippets:shell:start [2011/06/13 17:18] – created enrico | snippets:shell:start [2015/11/29 14:15] (current) – Fixed spelling/syntax error devyncjohnson | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Collection of Snippets for Shellscript | + | ====== Collection of Snippets for Shell-Scripts |
Just copy the the [Sh] section from the code below into your snippets file, e.g. in // | Just copy the the [Sh] section from the code below into your snippets file, e.g. in // | ||
- | < | + | < |
[Sh] | [Sh] | ||
if=if [ %cursor% ]; then\n\t%cursor%\nfi | if=if [ %cursor% ]; then\n\t%cursor%\nfi | ||
Line 10: | Line 10: | ||
case=case %cursor% in \n\t%cursor%)\n\t\t%cursor%\n\t\t;; | case=case %cursor% in \n\t%cursor%)\n\t\t%cursor%\n\t\t;; | ||
</ | </ | ||
+ | |||
+ | ====== Alternative (Enhanced) ====== | ||
+ | |||
+ | <code properties> | ||
+ | head=# | ||
+ | hashpling=# | ||
+ | bashhashpling=# | ||
+ | cshhashpling=# | ||
+ | envhashpling=# | ||
+ | utf8=# -*- coding: utf-8 -*-\n# vim: | ||
+ | bash=# | ||
+ | rmdir=rm -vrd --one-file-system /PATH/* | ||
+ | softlink=ln -vs -t / | ||
{{tag> | {{tag> |