Commit 85150a85 authored by adihrustic's avatar adihrustic

bash snippets added

Signed-off-by: adihrustic's avataradihrustic <[email protected]>
parent 7652bbb3
# A valid snippet should starts with:
#
# snippet trigger_word [ "description" [ options ] ]
#
# and end with:
#
# endsnippet
#
# Snippet options:
#
# b - Beginning of line.
# i - In-word expansion.
# w - Word boundary.
# r - Regular expression
# e - Custom context snippet
# A - Snippet will be triggered automatically, when condition matches.
#
# Basic example:
#
# snippet emitter "emitter properties" b
# private readonly ${1} = new Emitter<$2>()
# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
# endsnippet
#
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
snippet ifelse "if ... else ... fi"
if ${2:[[ $1 ]]}; then
$3
else
$0
fi
endsnippet
snippet null "output to /dev/null/"
${1:&}>/dev/null
endsnippet
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment