Automatically compiling dotfiles from Git (or whatever) repository

In this post we will talk about automatically setting up VS Code for Linux. We will use a tool called dotbot to set up our installation script.

Before we can begin, let us first create a new directory for our dotfiles. I am going to call mine dotfiles, you can call it whatever you want:

$ mkdir dotfiles && cd dotfiles

We will also need a git repository to host our dotfiles. Once we have created the repository, we should clone it:

$ git clone .

We also need to install Python and pip (package manager for Python). Once installed, we will run the following command to install Python dependencies:

$ pip3 install –user -r requirements.txt

Now we are ready to create our installation script by adding an install script in bin/install. This is the code that will be run when you execute ./bin/install from the command line:

echo “==> Checking if the required commands are installed…”

command -v stow >/dev/null 2>&1 || { echo “Error: GNU Stow is not installed.” >&2; exit 1; }

command -v git >/

I was hoping to find something like this when I googled “How to automatically set up VS Code for Linux”.

This is a great post and the script works well. But I guess it’s not really designed for use on computers that don’t have sudo access. In my case, I’m using it on work machines where admins don’t want us installing software.

I found this post because I was looking for ways to set up VS code on Linux without using sudo (and ideally without needing even one-time access).

I ended up writing my own Python script which uses the fantastic requests library to fetch the .deb file from Microsoft’s servers and install it in my home directory (or update if it already exists). It does some other things too (like setting up symlinks for the launcher icon and ‘code’ command) but in essence it’s similar to what this post describes.

The script is here:

Note: This isn’t an attempt to replace this post or anything; I just wanted to share what I came up with since it was hard for me

I recently moved from Mac to Linux and I have been trying to find a good (free) text editor for a while. I’ve tried Atom, and was quite happy with it, but the GitHub guys made a pretty ridiculous deal with Microsoft by selling their soul.

I also gave VS Code a try before I had decided to move away from Atom. Back then I was not impressed at all. But as I needed to leave Atom and VS Code is now an open source project, I thought why not give it another try?

VS Code can be installed on Ubuntu easily. The only problem is that when you run it, there are no nice themes or plugins installed by default. However, VS Code allows you to put your user settings into JSON files in the ~/.config/Code/User directory. So what if we could pull our dotfiles from Git into this directory whenever we start VS Code?

I have always disliked manually setting up my development environment on different machines, especially when it comes to Visual Studio Code. For a while I have been trying to figure out an easy and smart way to automatically set up my development environment from a remote repository.

I have used Ansible in the past, but I found it too cumbersome for something that should be a lot simpler. You don’t need to orchestrate your entire infrastructure with Ansible when you just want to install a single editor and some extensions.

Enter make!

Make is a tool that has been around since the 1970s (or maybe even earlier). It’s primarily used by developers to describe how they want their software built, but we can also use it for other things, like setting up VS Code.

I’ve used Microsoft’s Visual Studio Code for a while now, and I really like it. It has good built-in support for TypeScript, including code completion and type errors. It also has a nice extension system that lets you add features like Git integration, which is great because it means you can use the same editor on Linux, Mac and Windows.

I recently switched to using Arch Linux as my main OS, which allows me to use a rolling release distribution with the latest versions of everything (well, almost). I am really enjoying setting up my environment from scratch and having total control over everything I install.

One thing I want to do is automatically set up my development environment when installing Arch Linux or a new machine so that I don’t have to manually install everything every time. What follows are my current thoughts on how to do this for VS Code.

Visual Studio Code is a full-featured code editor that runs on all major desktop operating systems, such as Windows, macOS and Linux. It is available for free download from Microsoft’s official website. In this tutorial, we will show you how to set up Visual Studio Code for Ubuntu Linux.

We will begin by installing the prerequisites required to build Visual Studio Code from source. We will then download the latest version of Visual Studio Code from its official website and install it on our system. Finally, we will provide some basic usage examples of Visual Studio Code.

Visual Studio Code is a cross-platform editor from Microsoft. It’s one of the most popular editors out there and for good reason. It has a modern look and feel, it’s easy to use and it gets out of your way when you need some serious space to think.

I use Visual Studio Code on Windows, macOS and Linux. I love the editor so much that I want my setup to be as identical as possible across all three platforms. On Windows and macOS, this is not an issue because the editor will remember your settings even after you update it. On Linux however, you need to [read more…]

Leave a Reply

Your email address will not be published. Required fields are marked *