elvish_config/aliases/carapace.elv

16 lines
332 B
Plaintext
Raw Normal View History

2021-12-11 21:09:02 +00:00
edit:add-var updatecarapace~ {||
use path
var cur = (pwd)
var wd = $E:HOME/Documents/OtherGo/github.com/rsteube/carapace-bin
var bd = $E:HOME/Go/bin
2021-11-06 10:15:18 +00:00
cd $wd
git pull
cd cmd/carapace
go generate ./...
go build -ldflags="-s -w" -tags release
if (path:is-regular carapace) {
2021-11-06 10:15:18 +00:00
mv -f carapace $bd
}
cd $cur
2021-11-06 10:15:18 +00:00
}