init
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: bang
|
||||
# key: !
|
||||
# --
|
||||
#!/usr/bin/env fish
|
||||
$0
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: begin ... end
|
||||
# key: block
|
||||
# --
|
||||
begin
|
||||
$0
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: breakpoint
|
||||
# key: bp
|
||||
# --
|
||||
breakpoint
|
||||
$0
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: for loop
|
||||
# key: for
|
||||
# --
|
||||
for ${1:var} in ${2:stuff}
|
||||
$0
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: function
|
||||
# key: function
|
||||
# --
|
||||
function ${1:name}
|
||||
$0
|
||||
end
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: if ... end
|
||||
# key: if
|
||||
# --
|
||||
if ${1:[ -f file ]}
|
||||
${2:do}
|
||||
end
|
||||
$0
|
||||
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: if ... ... else ... end
|
||||
# key: ife
|
||||
# --
|
||||
if ${1:cond}
|
||||
${2:stuff}
|
||||
else
|
||||
${3:other}
|
||||
end
|
||||
$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: switch
|
||||
# key: sw
|
||||
# --
|
||||
switch ${1:condition}
|
||||
case ${2:*}
|
||||
$0
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: while loop
|
||||
# key: while
|
||||
# --
|
||||
while ${1:cond}
|
||||
$0
|
||||
end
|
||||
Reference in New Issue
Block a user