win-term-diks

0

Описание

Make Windows Terminal Beatiful ~ Windows Terminal is a modern terminal application for developers who frequently uses command-line tools such as Powershell. I’ll show you how to customize the hell out of Windows Terminal and Powershell so that you can flex on your friends and colleagues 😎.

README.md

Make Windows Terminal Beatiful ~

Installation

Fonts

Nerd Fonts refer to programming fonts that are patched with a high number of glyphs (icons). Using a nerd font in Windows Terminal is essential because normal monospace fonts cannot render icons properly:

  1. Go to https://www.nerdfonts.com
  2. Download font would u like, for me its JetBrainsMono
  3. Unzip file, go to folder and install fonts
  4. Restart your Windows Terminal by closing and re-opening it.
  5. Go to Settings → “Windows Powershell” profile → “Appearance” tab → “Font face”, and choose your newly installed Nerd Font.

oh-my-posh

Windows:

  1. Open Terminal and run command.
  1. Open ps profile.
  1. Paste your Prompt.
  1. Restart your Terminal. Your Powershell should now load Oh My Posh automatically

Linux (bash):

  1. Install the latest version for your system by running the following command:
  1. Add the following snippet as the last line to 
    ~/.bashrc
     (could be 
    ~/.profile
     or 
    ~/.bash_profile
     depending on your environment):
  1. Restart your Terminal.

Change Theme

Oh My Posh comes with >70 themes included out-of-the-box. Check out the “Themes” page documentation for a gallery of preinstalled themes.


Enable transparent background and Color Scheme in Windows Terminal

  1. Open the Terminal settings To open the settings, you can either hit 
    ctrl+,
     (Windows), or go to the dropdown-arrow in the navigation bar and select 
    settings
    .

You'll see your 

settings.json
 or get a chance to click and open it in your favorite editor, and this is where you'll make the changes. 2. Full transparency To enable the full transparency, define the following settings in your settins.json: Here's an example:

Opaque/acrylic transparency

To enable acrylic transparency, you can define the 

useAcrylic
 boolean property, along with the 
opacity
 which is a number to specify the transparency between 0 and 100.

Color Scheme

My color scheme is a slightly modified version of XCAD. To install the color scheme:

  1. Open Settings in Windows Terminal and press the “Open JSON file” button at the bottom left corner. It will open 
    settings.json
     in Notepad.
  2. In 
    settings.json
    , scroll down to find the 
    "schemes"
     field, which accepts an array of color scheme objects. Next, paste in my color scheme object before the first object in the array (note that object order does not matter).
  1. Save your changes and head back to Windows Terminal. Go to Settings → "Windows Powershell" profile → "Appearance" tab → "Color Scheme", and choose the new color scheme. Then, press "Save".

Neofetch

As an added bonus, we’ll install neofetch, a command-line tool that prints out system information.

  1. Run Windows Terminal as administrator. To do that, search “Windows Terminal” in the Start Menu, right click the item, and press “Run as administrator”
  2. In Powershell, run the command:
  1. Restart your Terminal. Then, run 
    neofetch
     to see if it’s correctly installed.

To get a wow effect, do not forget to put a beautiful wallpaper :) I use Wallpaper Engine, with Cybering Wallpapers


Screenshots