Posh2K - A universal prompt for power users 💊🌈

Posh2K

What is this

Posh2K is a prompt for oh-my-posh, it works on all shells, has multiple segments with aesthetically pleasing colors.

Inspiration

Most of my workflow is based on the command line, recently I had to use a Windows system for some work and was really displeased by the CLI experience.

So, I needed a prompt that can work across shells and has support for different segments and Posh2K was born.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of oh-my-posh

Getting Posh2K

To get Posh2K, follow these steps:

git clone https://github.com/2kabhishek/Posh2K

# for Powershell, add this to $Profile
oh-my-posh init pwsh --config ~/PATH_TO_DIR/Posh2K/posh2k.omp.json | Invoke-Expression

# for Zsh, add this to ~/.zshrc
eval "$(oh-my-posh init zsh --config ~/PATH_TO_DIR/Posh2K/posh2k.omp.json)"

# for Bash, add this to ~/.bashrc
eval "$(oh-my-posh init bash --config ~/PATH_TO_DIR/Posh2K/posh2k.omp.json)"

# for Fish, add this to ~/config/fish/config.fish
oh-my-posh init fish --config ~/PATH_TO_DIR/Posh2K/posh2k.omp.json | source

# for nu shell, run
oh-my-posh init nu --config ~/PATH_TO_DIR/Posh2K/posh2k.omp.json
source ~/oh-my-posh.nu

# for cmd, install Clink, then add this
load(io.popen('oh-my-posh init cmd --config ~/PATH_TO_DIR/Posh2K/posh2k.omp.json'):read("*a"))()

More

Posh2K repo

Show some love by liking and sharing, let me know if you have any feedback in the comments

Follow me on Twitter | Linkedin | Instagram to stay in touch.

Co-author.nvim - Add commit authors from nvim ðŸ’ŧ🊄

Data Structure and Algorithms are Overrated! ðŸšŦðŸŠī