A customized ZSH theme based on the Catppuccin Mocha color scheme, adapted from the Dracula theme foundation. This theme features a simple and functional prompt with support for git status, time display, context, and directory information, enhanced with hex color support discovered by ezswan.
This theme is an adaptation of the original Dracula theme, tailored to the Catppuccin Mocha palette. Key features include:
- Dynamic arrow color changes based on command success (pink), failure (red), or vi mode (yellow).
- Support for hex colors, allowing for precise color customization.
- Asynchronous git status integration.
- Configurable options for time, context, new lines, and full directory paths.
This theme uses the Catppuccin Mocha palette with hex colors. The following colors are applied:
- Pink: #f5c2e7 (success indicator)
- Red: #f38ba8 (failure indicator)
- Yellow: #f9e2af (vi mode and custom variable)
- Teal: #94e2d5 (time segment)
- Mauve: #cba6f7 (context segment)
- Blue: #89b4fa (directory segment)
- Green: #a6e3a1 (clean git status)
The arrow (➜) changes color based on the last command's exit status:
- Pink (#f5c2e7): Successful command.
- Red (#f38ba8): Failed command.
- Yellow (#f9e2af): Active vi command mode.
Git status is displayed asynchronously in pink (#f5c2e7) with green (#a6e3a1) for clean and yellow (#f9e2af) for dirty states.
Time, context, and directory segments are color-coded for readability.
-
Clone the Repository:
git clone https://github.com/ezswan/simple-zsh-catppuccin.git into a location of your choice.
git clone https://github.com/ezswan/simple-zsh-catppuccin.git "your-path"
-
Copy ~/your-path/simple-zsh-catppuccin/lib to ~/.oh-my-zsh/custom/themes/
cp -r ~/your-path/simple-zsh-catppuccin/lib ~/.oh-my-zsh/custom/themes/
-
Symlink from theme file to .oh-my-zsh
ln -s /path/to/catppuccin-mocha.zsh-theme ~/.oh-my-zsh/custom/themes/catppuccin-mocha.zsh-theme
(Replace /path/to/ with the actual path to the cloned theme file) -
Set the theme in .zshrc
ZSH_THEME="catppuccin-mocha"
-
Reload ZSH
source ~/.zshrc
Zeno Rocha [email protected] Avalon Williams [email protected] (Dracula Theme foundation)
ezswan [email protected] (Adapted the Catppuccin Mocha Theme, implemented the pink color fix replacing green, and discovered hex color support)
This theme is licensed under the MIT License. See http://zenorocha.mit-license.org for details.
Feel free to submit issues or pull requests on the GitHub repository. Suggestions for new features or color schemes are welcome!
Thanks to the Catppuccin project for the inspiring Mocha palette and the Dracula theme community for the original framework.