From 88d52fa7a477eb96eb40464c3c1d4ef6bcc2e117 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 21 Nov 2023 03:12:49 -0800 Subject: [PATCH] :wrench: Basic espanso bash script for php --- .config/espanso/match/base.yml | 10 ++++++++++ scripts/php8 | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100755 scripts/php8 diff --git a/.config/espanso/match/base.yml b/.config/espanso/match/base.yml index 1cd55272..38fa3f59 100644 --- a/.config/espanso/match/base.yml +++ b/.config/espanso/match/base.yml @@ -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 diff --git a/scripts/php8 b/scripts/php8 new file mode 100755 index 00000000..bc7c930d --- /dev/null +++ b/scripts/php8 @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +cat < +EOM \ No newline at end of file