oh-my-posh-cli
v1.1.2
Published
CLI tool for cycling through Oh My Posh themes in bash
Readme
omp-cli
A simple CLI tool for cycling through Oh My Posh themes in bash.
Features
- Browse themes with
omp nextandomp prev— the prompt updates instantly - Themes persist across terminal sessions
- Automatically downloads themes via sparse git checkout (minimal disk usage)
- Self-configuring
.bashrcintegration - Zero dependencies — just Node.js 18+
Install
git clone https://github.com/kellyelton/omp-cli.git
cd omp-cli
node index.js setup
source ~/.bashrcUsage
omp next Switch to the next theme
omp prev Switch to the previous theme
omp update Update themes from GitHub
omp status Check installation status
omp setup Install themes and configure .bashrcHow It Works
The setup command clones the Oh My Posh themes directory and adds a bash function to your .bashrc that wraps the CLI. When you run omp next or omp prev, the Node process outputs shell commands to stdout which the bash function evals in your current session, updating the prompt immediately.
Requirements
- Oh My Posh installed
- Node.js 18+
- Git
- Bash
