Giter VIP home page Giter VIP logo

omp-windows's Introduction

oh-my-posh windows

Guide to setup oh-my-posh with powerline in windows

  1. Install the windows terminal from store
  2. Download the OhMyPosh by running below command in Windows Terminal (Make sure Terminal is using Windows Powershell) winget install JanDeDobbeleer.OhMyPosh -s winget if failed to initiate, go to windows store and install app installer. Below picture for reference-

Image of app installer

  1. Download the DaddyTimeMono NF font or any other Nerd font
  2. Make the downloaded font in settings of terminal. Pressing Ctrl+Shift+, will open the settings.json file. add below lines into "defaults":{} array
"font": {
        "face": "DaddyTimeMono NF"
      }

it should be look like this-

...
"profiles": {
    "defaults": {
      "font": {
        "face": "DaddyTimeMono NF"
      }
    },
    "list": [
      {
        "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
        ....
  1. Restart terminal with Admin privilege
  2. Edit the profile settings with notepad by running notepad $PROFILE
  3. If above command returns below error, that means profile setting file is not present. To make one, run - New-Item -Path $PROFILE -Type File -Force

image

  1. Now edit the profile by notepad $PROFILE and save the file after putting oh-my-posh init pwsh | Invoke-Expression in the profile.
  2. Run oh-my-posh init pwsh | Invoke-Expression , the shell should be start working immediately.
  3. If this returns error saying running script is disabled in this system, run Set-ExecutionPolicy RemoteSigned
  4. Load the new profile with command . $PROFILE
  5. Restart the terminal and enjoy !

omp-windows's People

Contributors

abirtasrif avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.