Skip to content

Commit b737731

Browse files
authored
Retrict shebang snippet to BOL (#74)
* `bang` snippet only on first line The `bang` (`#!`) snippet now only activates if the current line is 1 since that's the only place it works anyways. Signed-off-by: MithicSpirit <[email protected]> * Switch `bang` to checking if at beginning of line Shebangs may be desired in the middle of a file occasionally. Signed-off-by: MithicSpirit <[email protected]>
1 parent 061e183 commit b737731

File tree

1 file changed

+1
-0
lines changed
  • fundamental-mode

1 file changed

+1
-0
lines changed

fundamental-mode/bang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# name: bang
33
# key: #!
44
# uuid: #!
5+
# condition: (bolp)
56
# insert a choice if you have more than one possibility
67
# --
78
#!/usr/bin/env ${1:bash}

0 commit comments

Comments
 (0)