mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-20 12:58:05 +01:00
Use /usr/bin/env, it's more portable.
This commit is contained in:
committed by
Michael Sanders
parent
1e17e07802
commit
74d7a0a402
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
File: convertSnips.py
|
||||
Author: Michael Sanders
|
||||
|
||||
@@ -30,7 +30,7 @@ snippet #if
|
||||
# (the randomizer code is taken directly from TextMate; it could probably be
|
||||
# cleaner, I don't know how to do it in vim script)
|
||||
snippet once
|
||||
#ifndef ${1:`toupper(Filename('', 'UNTITLED').'_'.system("/usr/bin/ruby -e 'print (rand * 2821109907455).round.to_s(36)'"))`}
|
||||
#ifndef ${1:`toupper(Filename('', 'UNTITLED').'_'.system("/usr/bin/env ruby -e 'print (rand * 2821109907455).round.to_s(36)'"))`}
|
||||
|
||||
#define $1
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# #!/usr/bin/perl
|
||||
# #!/usr/bin/env perl
|
||||
snippet #!
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
|
||||
# Hash Pointer
|
||||
snippet .
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
snippet #!
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python
|
||||
|
||||
snippet imp
|
||||
import ${1:module}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# #!/usr/bin/ruby
|
||||
# #!/usr/bin/env ruby
|
||||
snippet #!
|
||||
#!/usr/bin/ruby
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
# New Block
|
||||
snippet =b
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# #!/usr/bin/tclsh
|
||||
# #!/usr/bin/env tclsh
|
||||
snippet #!
|
||||
#!/usr/bin/tclsh
|
||||
#!/usr/bin/env tclsh
|
||||
|
||||
# Process
|
||||
snippet pro
|
||||
|
||||
Reference in New Issue
Block a user