All Projects → marlonrichert → zcolors

marlonrichert / zcolors

Licence: MIT license
🌈 Z Colors uses your $LS_COLORS to generate a coherent theme for Git and your Zsh prompt, command line and completions.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to zcolors

bureau
💻 Informative and fast ZSH prompt with git status. Works well with HUGE repositories. Show username, hostname, path, git branch and status.
Stars: ✭ 27 (-28.95%)
Mutual labels:  prompt, zsh-theme
Polyglot
Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, dash, and busybox ash
Stars: ✭ 118 (+210.53%)
Mutual labels:  prompt, zsh-theme
apollo-zsh-theme
Heavily customizable, compatible, and fast ZSH theme framework.
Stars: ✭ 64 (+68.42%)
Mutual labels:  prompt, zsh-theme
Common
A simple, clean and minimal prompt.
Stars: ✭ 213 (+460.53%)
Mutual labels:  prompt, zsh-theme
Color Scheme
color-scheme,颜色方案,color主题,scheme,webstrom,phpstrom,pytharm,配色方案,编辑器,xfce4主题,护眼,暗色,dark
Stars: ✭ 162 (+326.32%)
Mutual labels:  color, configuration
Spaceship Prompt
🚀⭐ A Zsh prompt for Astronauts
Stars: ✭ 15,748 (+41342.11%)
Mutual labels:  prompt, zsh-theme
Agkozak Zsh Prompt
A fast, asynchronous ZSH prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
Stars: ✭ 182 (+378.95%)
Mutual labels:  prompt, zsh-theme
flavours
🎨💧 An easy to use base16 scheme manager that integrates with any workflow.
Stars: ✭ 331 (+771.05%)
Mutual labels:  color, theming
guri
A simple and fast Oh-My-Zsh theme
Stars: ✭ 19 (-50%)
Mutual labels:  prompt, zsh-theme
color
OCaml library to work with colors on the web
Stars: ✭ 20 (-47.37%)
Mutual labels:  color
javascript-color-gradient
Lightweight JavaScript library, used to generate an array of color gradients, between start and finish colors.
Stars: ✭ 54 (+42.11%)
Mutual labels:  color
fish-kube-prompt
⎈ kubectl context/namespace in your fish shell prompt
Stars: ✭ 71 (+86.84%)
Mutual labels:  prompt
Cloudy
Minimal cloudy ☁️ zsh theme
Stars: ✭ 28 (-26.32%)
Mutual labels:  zsh-theme
PowerColorLS
PowerShell script to display a colorized directory and file listing with icons
Stars: ✭ 35 (-7.89%)
Mutual labels:  color
zsh-aws-vault
oh-my-zsh plugin for aws-vault
Stars: ✭ 63 (+65.79%)
Mutual labels:  prompt
Machfiles
The dotfiles you see in all my videos
Stars: ✭ 347 (+813.16%)
Mutual labels:  configuration
dotfiles
🏡 There's no place like ~/
Stars: ✭ 59 (+55.26%)
Mutual labels:  configuration
configuration-service
Configuration Service is a distributed configuration provider for .NET Core.
Stars: ✭ 62 (+63.16%)
Mutual labels:  configuration
homebridge-yeelight-platform
Homebridge plugin for Yeelight Lights supporting Scenes/Moods/Color Flow/Custom Presets/Music Flow/Night Mode
Stars: ✭ 53 (+39.47%)
Mutual labels:  color
onion
Layer based configuration for golang
Stars: ✭ 104 (+173.68%)
Mutual labels:  configuration

🌈 Z Colors

Use your Gnu $LS_COLORS or BSD $LSCOLORS to generate a coherent theme for git, less, grep, and your Zsh prompt, completions and command line. Don't know how to or don't feel like customizing your colors? No worries: Z Colors comes with an excellent default theme, too.

Enjoy this software? Become a sponsor!

screen shot

Usage

Once you've installed Z Colors with the steps below, then your theme is automatically applied to git, less, grep plus Zsh completions and command line. No other steps are required for these.

For adding colors to your prompt, Z Colors provides an associative array $zcolor containing the theme values for file types di, ln, so, pi, ex, bd, cd, su, sg, tw and ow. You can use it like this:

# $'...': string with support for `print` escape codes
# %{<esc>%}: Tell the prompt that <esc> is zero-width output.
# %{\e[0m%}: Reset all colors and other highlighting.
# %~: present working dir;  %#: `%` for normal user, `#` for root
PS1=$'%{\e['$zcolor[di]$'m%}%~%{\e[m%}/ %# '

Requirements

If you use $LS_COLORS, then the values for di, ln, so, pi, ex, bd, cd, su, sg, tw and ow need to contain 3- or 4-bit colors only. 8- and 24-bit colors are currently not supported!

For your theme be used to highlight your command line, you will need to also install zsh-syntax-highlighting.

Installation

Using Znap (recommended):

  1. In your ~/.zshrc file, add:
    znap source marlonrichert/zcolors
    znap eval zcolors "zcolors ${(q)LS_COLORS}"
  2. To update, do:
    % znap pull

Manually:

  1. On the command line, do:
    % cd ~/Git  # or wherever you keep your Git repos/Zsh plugins
    % git clone https://github.com/marlonrichert/zcolors.git
    % autoload -Uz ~/Git/zcolors/functions/zcolors
    % zcolors >| ~/.zcolors
  2. In your ~/.zshrc file, add:
    source ~/Git/zcolors/zcolors.plugin.zsh
    source ~/.zcolors  # generated in step 1
  3. To update, do:
    % git -C ~/Git/zcolors pull
  4. Whenever you change your $LS_COLORS, do:
    % zcolors >| ~/.zcolors
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].