2021-11-06 10:15:18 +00:00
|
|
|
edit:add-var updatecarapace~ []{
|
2021-11-08 06:40:10 +00:00
|
|
|
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"
|
|
|
|
if (bool ?(test -f carapace)) {
|
|
|
|
mv -f carapace $bd
|
|
|
|
}
|
2021-11-08 06:40:10 +00:00
|
|
|
cd $cur
|
2021-11-06 10:15:18 +00:00
|
|
|
}
|