🔧 Basic espanso bash script for php

This commit is contained in:
z3rOR0ne 2023-11-21 03:12:49 -08:00
parent 1c09f25d0e
commit 88d52fa7a4
2 changed files with 17 additions and 0 deletions

View file

@ -300,6 +300,16 @@ matches:
params:
cmd: "~/scripts/html5 ; echo ''"
# returns default html5 layout
- trigger: ";php"
force_clipboard: true
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "~/scripts/php8 ; echo ''"
# returns default html5 layout in pug
- trigger: ";pug5"
force_clipboard: true

7
scripts/php8 Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
cat <<EOM
<?php
?>
EOM