edit:add-var maj-carapace~ {|| use path var cur = (pwd) var wd = $E:HOME/Documents/OtherGo/github.com/rsteube/carapace-bin var bd = $E:HOME/Go/bin cd $wd git pull cd cmd/carapace go generate ./... go build -ldflags="-s -w" -tags release if (path:is-regular carapace) { mv -f carapace $bd } cd $cur }