mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:06:41 +00:00
feat(cursor): automatically mark script files as execuable on save
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Cursor Extensions
|
||||
# Generated on Fri Feb 21 23:10:20 GMT 2025
|
||||
# Generated on Sun Feb 23 16:35:53 GMT 2025
|
||||
|
||||
alefragnani.project-manager@12.8.0
|
||||
antiantisepticeye.vscode-color-picker@0.0.4
|
||||
@@ -13,6 +13,7 @@ christian-kohler.path-intellisense@2.10.0
|
||||
connorshea.vscode-ruby-test-adapter@0.9.2
|
||||
ctf0.macros@1.1.1
|
||||
dnut.rewrap-revived@1.16.3
|
||||
emeraldwalk.runonsave@0.2.7
|
||||
exiasr.hadolint@1.1.2
|
||||
fnando.linter@0.0.19
|
||||
foxundermoon.shell-format@7.2.5
|
||||
|
||||
@@ -202,6 +202,7 @@
|
||||
// ===========================================================================
|
||||
// Ruby
|
||||
// ===========================================================================
|
||||
// Extensions:
|
||||
// - https://marketplace.visualstudio.com/items?itemName=Shopify.ruby-extensions-pack
|
||||
// - https://marketplace.visualstudio.com/items?itemName=connorshea.vscode-ruby-test-adapter
|
||||
//
|
||||
@@ -268,6 +269,21 @@
|
||||
],
|
||||
//
|
||||
// ===========================================================================
|
||||
// Run on Save callbacks
|
||||
// ===========================================================================
|
||||
// Extension URL:
|
||||
// - https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave
|
||||
//
|
||||
"emeraldwalk.runonsave": {
|
||||
"commands": [
|
||||
{ // Automatically chmod +x script files (first two bytes are `#!`).
|
||||
"match": ".*",
|
||||
"cmd": "if [ ! -x \"${file}\" ] && head -n 1 \"${file}\" | grep -q '^#!'; then echo \"Marking ${relativeFile} as executable...\" && chmod +x \"${file}\"; fi"
|
||||
}
|
||||
]
|
||||
},
|
||||
//
|
||||
// ===========================================================================
|
||||
// Macros
|
||||
// ===========================================================================
|
||||
// Extension URL:
|
||||
|
||||
Reference in New Issue
Block a user