Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 19, 2021 08:31 am GMT

Blade Runner 2049, but it is in your Windows Terminal

My lab assistant once said, "Make your terminal feels like your home!" and proceed to show me a cool terminal during lab session. I didn't have the time to do it back then but now I get a chance to. So here's how I make my Windows Terminal looks like I using it from the movie Blade Runner 2049 since it feels like a futuristic home to me .

1. Install Windows Subsystem Linux 2 (WSL2)
2. Install Windows Terminal
3. Install Z Shell (zsh) as the default shell
4. Prepare the image or GIF for the background
5. Change the background and text

1. Install Windows Subsystem Linux 2 (WSL2)

The first thing is to install WSL2 on the device since I'm using Windows as my OS and WSL2 provide more than the previous version. You might ask, why don't you use PowerShell or Windows Command Prompt instead? The reason is I'm not used to it since my college and my work environment mostly depends on Windows. Go to step 2 if you don't wanna install. You need to install WSL1 before you could install WSL2. I'm not gonna explain it further here since it is out of this scope. There's just no shortcut to install WSL2. Follow this instruction on WSL installation first, then this instruction on WSL2 installation.

WSL2

2. Install Windows Terminal

This is quite easy. Go to the Microsoft Store and type Windows Terminal on the search bar. Click the product and click the Get or Install button. Let the process finish. Once it's done you're on set. Hold Win + R and type wt to run Windows Terminal. We are installing this after WSL2 so Windows Terminal could instantly register WSL2 on it.

Windows Terminal

3. Install Z Shell (zsh) as the default shell

This step is just for WSL users only. Go to step 4 if you are not. The reason I choose this shell is for these 2 primary reasons. First, zsh is the second-fastest shell as far as I know. Second, it has a great framework that improves usability, Oh-My-Zsh, no pun intended. Follow this article on how to install zsh and its plugins. When it comes to choosing a zsh theme, just go for the jonathan or agnoster theme. For me personally, the terminal designs fit perfectly with the futuristic nuance of the movie .

zsh

4. Prepare the image or GIF for the background

This part, I leave it to you, whether to choose a static image or gif for the background. For me personally, I want something alive accompanying me while I'm doing some code or script on the terminal . So I go with the gif. Usually the gif itself I get from a certain movie scene. I look for the scene on YouTube, download it, trim it if it's too long and convert it into a gif. I'll use this gif below from a hilarious movie RocknRolla directed by one of my favourite directors Guy Ritchie on my PowerShell. This scene depicts perfectly what I thought about PowerShell in case I must use it for effectiveness. Handsome Bob (Tom Hardy) once came out to his friend OneTwo (Gerard Butler) and then said, "I told you, you wouldn't understand!". It might apply as well when I was told to explain my code to my colleagues. And believe me. it is way funnier in the movie context .

Handsome Bob

5. Change the background and text

Here's come the neat part . On Windows Terminal, hold ctrl + , to open Settings. There's a lot of options here but we just focus on these 2 things, background and font style. Under Profiles Section, choose your CLI program, in this case, I choose PowerShell first. Go to Appearance and then scroll down until you find Retro toggle and switch it on. Then scroll down once more and you will get to the Background image and browse for the gif file path. Don't forget to adjust the background through its stretch mode, alignment and opacity. I'm using "uniform to fill", "center" and 40% respectively.

Appearance configuration

And that configuration yield this result which is perfect! . Programmer tends to look on the darker work environment so that's why I only use 40% opacity.

Windows Terminal - Powershell

Okay, that was PowerShell I rarely use. This one is for my WSL2. First, I could use any scene with Joe or Agent K from Blade Runner 2049 movie for my background. But then the longer I stare at this terminal, the more depressing I've become to think about my existential crisis regarding my code and myself. Then I come to terms with this background. Instead of thinking about depressing stuff, why don't I turn it into something positive, let's say a therapy session ? I ended up using Pat from Silver Lining Playbook on his therapy session since it's spark a hilarious and refreshing moment when I stare at it .

Windows Terminal - WSL2

Okay, that's it. One might say I don't really use the Blade Runner 2049 reference on this but for me, mine is enough to hype the vibe and keep me motivated. How about yours?


Original Link: https://dev.to/ranggakd/blade-runner-2049-but-it-is-in-your-windows-terminal-365h

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To