Automation setup of new Mac and dotfiles synchronisation

Raul
Digital Rain
Published in
Jun 29, 2021

How to automate the setup of a new laptop and to keep your dotfiles in sync between laptops.

In this article, we will see how to create a script to automate the setup of a new laptop and keep your dotfiles in sync with other laptops.

  # PATCH/PUT /activities/1
# PATCH/PUT /activities/1.json
def update
respond_to do |format|
if @activity.update(activity_params)
format.html { redirect_to @activity, notice: 'Activity was successfully updated.' }
format.json { render :show, status: :ok, location: @activity }
else
format.html { render :edit }
format.json { render json: @activity.errors, status: :unprocessable_entity }
end
end
end

--

--