From f3417cc8f2b07c68a4fd4ba73fa875e98638b414 Mon Sep 17 00:00:00 2001 From: Benjamin VAUDOUR Date: Sat, 6 Nov 2021 11:15:18 +0100 Subject: [PATCH] =?UTF-8?q?Script=20de=20m=C3=A0j=20de=20carapace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aliases/carapace.elv | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 aliases/carapace.elv diff --git a/aliases/carapace.elv b/aliases/carapace.elv new file mode 100644 index 0000000..2cfc919 --- /dev/null +++ b/aliases/carapace.elv @@ -0,0 +1,12 @@ +edit:add-var updatecarapace~ []{ + var wd = ~/Documents/OtherGo/github.com/rsteube/carapace-bin + var bd = ~/Go/bin + cd $wd + git pull + cd cmd/carapace + go generate ./... + go build -ldflags="-s -w" + if (bool ?(test -f carapace)) { + mv -f carapace $bd + } +}