Thursday, December 26, 2013

Geany snippets for bash script

Add following code in ~/.config/geany/snippets.conf


[Sh]
if=if [ %cursor% ]; then\n\t\nfi
elif=elif [ %cursor% ]; then\n\t
else=else\n\t
for=for %cursor% in %cursor%; do\n\t\ndone
func=function %cursor%() {\n\t\n}
while=while [ %cursor% ]; do\n\t\ndone
until=until [ %cursor% ]; do\n\t\ndone
case=case %cursor% in\n\tval)\n\t\t;;\n\t*)\n\t\t;;\nesac
select=select %cursor% in %cursor%; do\n\t\ndone
view raw snippets.conf hosted with ❤ by GitHub
https://gist.github.com/kholis/8130755