An open API service indexing awesome lists of open source software.

https://github.com/deadlydog/Oh-My-Posh.DeadlydogTheme

Custom theme called 'deadlydog' for oh-my-posh
https://github.com/deadlydog/Oh-My-Posh.DeadlydogTheme

Last synced: 5 months ago
JSON representation

Custom theme called 'deadlydog' for oh-my-posh

Awesome Lists containing this project

README

        

# Deadlydog Oh My Posh Theme

## 💬 Description

This is a custom theme for [Oh My Posh](https://ohmyposh.dev), called `deadlydog`.

## 🖼 Screenshot and features

This is an example what the command prompt looks like with this theme:

![deadlydog oh-my-posh screenshot](docs/Images/deadlydog-theme-screenshot.png)

The top line's left block displays:

- The logged in user and the computer name.
- Handy if you run as different users or SSH into different servers.
- The full current directory path.
- Easy to select and copy the path, and can `Ctrl`+`Click` it to open in File Explorer.
- If in a Git repository, shows the current Git branch and status.
- If an error occurred on the previous command, a red `!` is shown (not shown in screenshot).
- Allows you to easily see if the previous executable returned a non-zero exit code.

The top line's right block displays:

- How long the previous command took to run.
- Great for when you start a long-running operation and walk away from your PC.
- The current time that the information was displayed.

The next line will show different information depending on the context:

- If logged into Azure, shows the current Azure subscription.
- If logged into Kubernetes, shows the current k8s context and namespace.

Lastly, the prompt character is shown on the final line to accept user input.

## ❓ Why this exists

I wasn't quite happy with [the out-of-the-box themes](https://ohmyposh.dev/docs/themes), so I created this one.

## 🚀 Quick start

To use this theme:

1. [Install Oh My Posh](https://ohmyposh.dev/docs/windows) if you haven't already.
1. Download and unzip [the latest release](https://github.com/deadlydog/Oh-My-Posh.DeadlydogTheme/releases) of the `deadlydog.omp.json` theme file.
1. Place the `deadlydog.omp.json` file somewhere where it can permanently live on your computer.
A good place is the default Posh Themes Path, which you can find by running `$env:POSH_THEMES_PATH` in PowerShell.
e.g. C:\Program Files\WindowsPowerShell\Modules\oh-my-posh\themes
1. [Set the theme in Oh My Posh](https://ohmyposh.dev/docs/windows#replace-your-existing-prompt).

- The command will vary depending on which shell you are in.
- You may need to change the file path to where you saved the `deadlydog.omp.json` file on your computer.
- In PowerShell it would look something like:

```powershell
oh-my-posh --init --shell pwsh --config $env:POSH_THEMES_PATH/deadlydog.omp.json | Invoke-Expression
```

Or if you have installed the oh-my-posh PowerShell module using `Install-Module oh-my-posh`, you can use the command:

```powershell
Set-PoshPrompt -Theme $env:POSH_THEMES_PATH/deadlydog.omp.json
```

## 🕵️‍♀️ Troubleshooting

If some characters do not show up properly, or you get errors like the following, it likely means that your terminal is not using a font that supports the unicode characters used in this theme:

> invalid char escape
>
> literal not terminated
>
> invalid char literal

I recommend using the `CaskaydiaCove Nerd Code` font, which can be [downloaded from here](https://www.nerdfonts.com/font-downloads).
Once you have downloaded and installed the font, you will need to [update your terminal to use it](https://blog.danskingdom.com/Update-your-terminal-prompt-and-font-in-Windows-Terminal-and-VS-Code-and-Visual-Studio/).

## 📃 Changelog

See what's changed in the application over time by viewing [the changelog](Changelog.md).

## 💳 Donate

Buy me a donut 🍩 for providing this theme open source and for free 🙂

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.me/deadlydogDan/5USD)