Giter Club home page Giter Club logo

edm115-ohmyposh-theme's Introduction

EDM115-ohmyposh-theme

My very own Oh My Posh theme


Installation :

Windows (PowerShell)

  • Add my themes in the themes folder (defaults to %LOCALAPPDATA%\Programs\oh-my-posh\themes)
  • Edit your PowerShell profile script (notepad $PROFILE) and add this :
$ErrorActionPreference = "SilentlyContinue"
Write-Host "PowerShell $($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor).$($PSVersionTable.PSVersion.Patch)"
Write-Host ""
$ErrorActionPreference = "Continue"

oh-my-posh init pwsh --config 'C:\Users\EDM115\AppData\Local\Programs\oh-my-posh\themes\EDM115.omp.json' | Invoke-Expression

Obviously change the config path, and the name depending of the theme you want. The first 3 lines have to be at the very top, as they will suppress the annoying "theme took xx ms to load" message.

Linux (Zsh)

  • Add my themes in the themes folder (defaults to ~/.local/share/oh-my-posh/themes)
  • Edit your Zsh profile script (nano ~/.zshrc) and add this :
# Oh My Posh
eval "$(oh-my-posh --init --shell zsh --config ~/.local/share/oh-my-posh/themes/EDM115.omp.json)"

You can change the config path, and the name depending of the theme you want.


Properties

  • Both themes uses the Dracula color scheme
  • Included segments (in order) :
    • session
    • root
    • os
    • path
    • git
    • node
    • npm
    • java
    • php
    • python
    • time
    • executiontime
  • Python shows even outside of a venv
  • Time shows seconds
  • Git have some changes :
    • Shows changes in the worktree (both staged and unstaged)
    • Links to the upstream (on the git provider icon)
    • Shows by how many commits we are ahead or behind the upstream
    • Shows the branch name
  • Path shows the full path, not only the current folder

But why 2 themes ?

The main theme I made is EDM115.omp.json
It features all elements I wanted and is clean
But after seing the work of thecodermehedi and RainbowCreamPie, I decided to create EDM115-newline.omp.json, which skips a line and shows unessential modules rounded on the right

Preview :

EDM115 OneLine

EDM115.omp.json

EDM115 NewLine

EDM115-newline.omp.json

Demo of a basic git workflow (in oneline)

Git workflow

Root status (in oneline)

root status


Attribution :

These themes are licenced under the MIT License
Also, feel free to edit them, change colors, icons, modules, ...

edm115-ohmyposh-theme's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

edm115-ohmyposh-theme's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

None detected


  • Check this box to trigger a request for Renovate to run again on this repository

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.