├── .github ├── ISSUE_TEMPLATE │ └── issue_report.md ├── issue_template.md └── pull_request_template.md ├── INSTALL.md ├── LICENSE ├── README.md ├── screenshot.png └── zsh-syntax-highlighting.sh /.github/ISSUE_TEMPLATE/issue_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Issue report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the Issue** 11 | A clear and concise description of what the bug or issue is. Preferably, please include screenshots if applicable. Please also format inline code and/or codeblocks appropriately. 12 | 13 | **Expected behavior** 14 | A clear and concise description of what you expected to happen or see. 15 | 16 | **Screenshots** 17 | If applicable, add screenshots to help explain your problem. 18 | 19 | **Additional context** 20 | Add any other context about the problem here. 21 | -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | > If you're reporting an UI issue, make sure you take a screenshot that shows the actual bug. -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /INSTALL.md: -------------------------------------------------------------------------------- 1 | ### [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting) 2 | 3 | #### Install using Git 4 | 5 | If you are a git user, you can install the theme and keep up to date by cloning the repo: 6 | 7 | git clone https://github.com/dracula/zsh-syntax-highlighting.git 8 | 9 | #### Install manually 10 | 11 | Download using the [GitHub .zip download](https://github.com/dracula/zsh-syntax-highlighting/archive/master.zip) option and unzip them. 12 | 13 | #### Activating theme 14 | 15 | 1. Before being able to use the Dracula theme for zsh-syntax-highlighting, you must first have [downloaded and installed the zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md) utility (and be using [zsh](https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH)). 16 | 17 | 2. Copy the contents of the [Dracula zsh-syntax-highlighting](https://github.com/dracula/zsh-syntax-highlighting/blob/master/zsh-syntax-highlighting.sh) file, and paste into your zshrc file, likely at `~/.zshrc`. 18 | 19 | * **Note**: If you installed zsh-syntax-highlighting [via git](https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md#in-your-zshrc), or [site wide](https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md#system-wide-installation), be sure to paste the contents of the file _before_ the following line in your `~/.zshrc` file: 20 | 21 | ```bash 22 | # ... 23 | source /some/path/to/your/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 24 | # ... 25 | ``` 26 | 27 | * **Note**: If you installed zsh-syntax-highlighting [via a plugin manager](https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md#with-a-plugin-manager), be sure to paste the contents of the file _before_ you activate the utility via it's plugin invocation. 28 | 29 | 3. Start a new zsh session: `exec zsh` and confirm it's working. 30 | 31 | #### Implementation 32 | 33 | This theme attempts to cover all possible zsh-syntax-highlighting options for the [**main** highlighter](https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md). The coloring was implemented/modelled after the [official Dracula color specification](https://spec.draculatheme.com/) as much as logically possible. 34 | 35 | As such, the theme is grouped by Dracula spec section; Each section in the spec is 1:1 with a `##
` in the theme file. For settings that didn't seem to fall under any of the Dracula spec, they are under the `## No category relevant in spec` section. 36 | 37 | Within a section, the options occur in the same order they do on the [main highlighter doc page](https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md). 38 | 39 | #### Accompanying Screnshot Prompt 40 | 41 | Though not related to this theme nor included as a specific Dracula offering, the prompt in the screenshot is [typewritten: "A minimal zsh prompt"](https://typewritten.dev/#/). Relevant `~/.zshrc` settings are so: 42 | 43 | ```bash 44 | # Typwritten: https://typewritten.dev/#/installation; Dracula compliment, purple based 45 | ZSH_THEME="typewritten" 46 | 47 | export TYPEWRITTEN_SYMBOL="λ " 48 | export DRACULA_TYPEWRITTEN_COLOR_MAPPINGS="primary:#d5ccff;secondary:#9580ff;info_neutral_1:#d0ffcc;info_neutral_2:#ffffcc;info_special:#ff9580;info_negative:#ff5555;notice:#ffff80;accent:#d5ccff" 49 | export TYPEWRITTEN_COLOR_MAPPINGS="${DRACULA_TYPEWRITTEN_COLOR_MAPPINGS}" 50 | export TYPEWRITTEN_PROMPT_LAYOUT="half_pure" 51 | ``` 52 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2021 Dracula Theme 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dracula for [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting) 2 | 3 | > A dark theme for [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting). 4 | 5 | ![Screenshot](./screenshot.png) 6 | 7 | ## Install 8 | 9 | All instructions can be found at [draculatheme.com/zsh-syntax-highlighting](https://draculatheme.com/zsh-syntax-highlighting). 10 | 11 | ## Team 12 | 13 | This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/zsh-syntax-highlighting/graphs/contributors). 14 | 15 | | [![George Pickering](https://avatars1.githubusercontent.com/u/9803299?v=4&s=70)](https://github.com/bigpick) | 16 | | ------------------------------------------------------------------------------------------------------------ | 17 | | [George Pickering](https://github.com/bigpick) | 18 | 19 | ## Community 20 | 21 | - [Twitter](https://twitter.com/draculatheme) - Best for getting updates about themes and new stuff. 22 | - [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best for asking questions and discussing issues. 23 | - [Discord](https://draculatheme.com/discord-invite) - Best for hanging out with the community. 24 | 25 | ## License 26 | 27 | [MIT License](./LICENSE) 28 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dracula/zsh-syntax-highlighting/09c89b657ad8a27ddfe1d6f2162e99e5cce0d5b3/screenshot.png -------------------------------------------------------------------------------- /zsh-syntax-highlighting.sh: -------------------------------------------------------------------------------- 1 | # Dracula Theme (for zsh-syntax-highlighting) 2 | # 3 | # https://github.com/zenorocha/dracula-theme 4 | # 5 | # Copyright 2021, All rights reserved 6 | # 7 | # Code licensed under the MIT license 8 | # http://zenorocha.mit-license.org 9 | # 10 | # @author George Pickering <@bigpick> 11 | # @author Zeno Rocha 12 | # Paste this files contents inside your ~/.zshrc before you activate zsh-syntax-highlighting 13 | ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor) 14 | typeset -gA ZSH_HIGHLIGHT_STYLES 15 | # Default groupings per, https://spec.draculatheme.com, try to logically separate 16 | # possible ZSH_HIGHLIGHT_STYLES settings accordingly...? 17 | # 18 | # Italics not yet supported by zsh; potentially soon: 19 | # https://github.com/zsh-users/zsh-syntax-highlighting/issues/432 20 | # https://www.zsh.org/mla/workers/2021/msg00678.html 21 | # ... in hopes that they will, labelling accordingly with ,italic where appropriate 22 | # 23 | # Main highlighter styling: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md 24 | # 25 | ## General 26 | ### Diffs 27 | ### Markup 28 | ## Classes 29 | ## Comments 30 | ZSH_HIGHLIGHT_STYLES[comment]='fg=#6272A4' 31 | ## Constants 32 | ## Entitites 33 | ## Functions/methods 34 | ZSH_HIGHLIGHT_STYLES[alias]='fg=#50FA7B' 35 | ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#50FA7B' 36 | ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#50FA7B' 37 | ZSH_HIGHLIGHT_STYLES[function]='fg=#50FA7B' 38 | ZSH_HIGHLIGHT_STYLES[command]='fg=#50FA7B' 39 | ZSH_HIGHLIGHT_STYLES[precommand]='fg=#50FA7B,italic' 40 | ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#FFB86C,italic' 41 | ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#FFB86C' 42 | ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#FFB86C' 43 | ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#BD93F9' 44 | ## Keywords 45 | ## Built ins 46 | ZSH_HIGHLIGHT_STYLES[builtin]='fg=#8BE9FD' 47 | ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#8BE9FD' 48 | ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#8BE9FD' 49 | ## Punctuation 50 | ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#FF79C6' 51 | ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#F8F8F2' 52 | ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#F8F8F2' 53 | ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#F8F8F2' 54 | ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#FF79C6' 55 | ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#FF79C6' 56 | ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=#FF79C6' 57 | ## Serializable / Configuration Languages 58 | ## Storage 59 | ## Strings 60 | ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=#F1FA8C' 61 | ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=#F1FA8C' 62 | ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#F1FA8C' 63 | ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=#FF5555' 64 | ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#F1FA8C' 65 | ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=#FF5555' 66 | ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=#F1FA8C' 67 | ## Variables 68 | ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#F8F8F2' 69 | ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=#FF5555' 70 | ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=#F8F8F2' 71 | ZSH_HIGHLIGHT_STYLES[assign]='fg=#F8F8F2' 72 | ZSH_HIGHLIGHT_STYLES[named-fd]='fg=#F8F8F2' 73 | ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=#F8F8F2' 74 | ## No category relevant in spec 75 | ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#FF5555' 76 | ZSH_HIGHLIGHT_STYLES[path]='fg=#F8F8F2' 77 | ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#FF79C6' 78 | ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#F8F8F2' 79 | ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#FF79C6' 80 | ZSH_HIGHLIGHT_STYLES[globbing]='fg=#F8F8F2' 81 | ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#BD93F9' 82 | #ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?' 83 | #ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?' 84 | #ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?' 85 | #ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?' 86 | ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=#FF5555' 87 | ZSH_HIGHLIGHT_STYLES[redirection]='fg=#F8F8F2' 88 | ZSH_HIGHLIGHT_STYLES[arg0]='fg=#F8F8F2' 89 | ZSH_HIGHLIGHT_STYLES[default]='fg=#F8F8F2' 90 | ZSH_HIGHLIGHT_STYLES[cursor]='standout' 91 | --------------------------------------------------------------------------------