Making VS Code Terminal Look Cool

I’m a fan of oh-my-zsh and p10k. They makes my terminal look very cool and useful. To make that happen, I have to set the Terminal font to “MesloLGM Nerd Font” or one of the nerd fonts.

After you set that up and start your VS Code, you realize that the terminal part looks all screwy.

You can go to preferences in VS Code and change the font face of the terminal and set the font to make it look cool as well.

Vagrant Images

There are vagrant images out there. I’m starting to look into more images to play with. You can find Oracle Linux vagrant images here.

HashiCorp’s Vagrant Cloud has a selection of available images for different providers. There are not as many as I thought but it’s good enough to spin up test environment.

Now I’m thinking… would Ansible work with Vagrant? I’ll find out!

Installing VS Code on Linux Mint

Fun part of starting a new install of any OS is figuring out how to install and configure your favorite tools. VS Code is one of my favorite tools that I use daily for work and privately.

Here is a way to install VS Code Linux Mint. You can alternatively install it from Software Manager but you cannot launch it from terminal, so here is the way to enable it.

  1. sudo apt update
  2. sudo apt install apt-transport-https
  3. curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
  4. sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
  5. sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
  6. sudo apt update
  7. sudo apt install code

Like I mentioned above, this way you can open VS Code from terminal. When you are navigating around, you may want to open VS Code in the directory. You can just type code . and it opens in that directory. I do that all the time on my work Mac.

How to Show Only Grep Match on a String

This was a little bit of a struggle just because I never had a need for it.

I wanted to get standard output from the result of grep only on a match of a string. I wanted to get the standard output from a grep match of 5 digits in a string. Here is how you can do it.

echo '12345asdf' | grep -oE '[0-9]{5}'

The result is ‘12345’.

Simple enough but took me about 20 mins to figure it out.