Skip to content

A customized ZSH theme based on the Catppuccin Mocha color scheme, adapted from the Dracula theme foundation.

License

Notifications You must be signed in to change notification settings

ezswan/simple-zsh-catppuccin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple ZSH Catppuccin

Simple ZSH Catppuccin Theme

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.

Overview

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.

Color Scheme

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)

Usage

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.

Installation

  1. 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"

  2. 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/

  3. 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)

  4. Set the theme in .zshrc

    ZSH_THEME="catppuccin-mocha"

  5. Reload ZSH

    source ~/.zshrc

Credits

Original Authors:

Zeno Rocha [email protected] Avalon Williams [email protected] (Dracula Theme foundation)

Adapter and Modifier:

ezswan [email protected] (Adapted the Catppuccin Mocha Theme, implemented the pink color fix replacing green, and discovered hex color support)

License

This theme is licensed under the MIT License. See http://zenorocha.mit-license.org for details.

Contributing

Feel free to submit issues or pull requests on the GitHub repository. Suggestions for new features or color schemes are welcome!

Acknowledgments

Thanks to the Catppuccin project for the inspiring Mocha palette and the Dracula theme community for the original framework.

About

A customized ZSH theme based on the Catppuccin Mocha color scheme, adapted from the Dracula theme foundation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages