├── .eslintrc.js ├── .gitignore ├── README.md ├── figures.plugin.zsh ├── genSymbols.js ├── package.json └── symbols.zsh /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parserOptions: { 4 | ecmaVersion: 2018, 5 | sourceType: 'module', 6 | }, 7 | extends: [ 8 | 'eslint:recommended', 9 | 'airbnb-base', 10 | 'plugin:unicorn/recommended', 11 | 'plugin:promise/recommended', 12 | 'standard-jsdoc', 13 | ], 14 | plugins: [ 15 | 'no-loops', 16 | 'unicorn', 17 | 'async-await', 18 | 'prefer-object-spread', 19 | 'promise', 20 | 'security', 21 | 'simple-import-sort', 22 | ], 23 | env: { 24 | browser: true, 25 | es6: true, 26 | mocha: true, 27 | }, 28 | globals: { 29 | Atomics: 'readonly', 30 | SharedArrayBuffer: 'readonly', 31 | }, 32 | rules: { 33 | 'unicorn/filename-case': 1, 34 | 'unicorn/import-index': 0, 35 | 'import/extensions': 0, 36 | 'prefer-object-spread/prefer-object-spread': 2, 37 | 'sort-imports': 'off', 38 | 'import/order': 'off', 39 | 'simple-import-sort/sort': 'error', 40 | }, 41 | }; 42 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .directory 3 | *.zwc 4 | *.old 5 | *~ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Welcome to figures 👋 2 | ![Version](https://img.shields.io/npm/v/figures.svg) 3 | [![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/zpm-zsh/figures) 4 | 5 | > Unicode symbols for ZSH 6 | 7 | ```bash 8 | ZSH_TICK='✔' 9 | ZSH_CROSS='✖' 10 | ZSH_STAR='★' 11 | ZSH_SQUARE='▇' 12 | ZSH_SQUARE_SMALL='◻' 13 | ZSH_SQUARE_SMALL_FILLED='◼' 14 | ZSH_PLAY='▶' 15 | ZSH_CIRCLE='◯' 16 | ZSH_CIRCLE_FILLED='◉' 17 | ZSH_CIRCLE_DOTTED='◌' 18 | ZSH_CIRCLE_DOUBLE='◎' 19 | ZSH_CIRCLE_CIRCLE='ⓞ' 20 | ZSH_CIRCLE_CROSS='ⓧ' 21 | ZSH_CIRCLE_PIPE='Ⓘ' 22 | ZSH_CIRCLE_QUESTION_MARK='?⃝' 23 | ZSH_BULLET='●' 24 | ZSH_DOT='․' 25 | ZSH_LINE='─' 26 | ZSH_ELLIPSIS='…' 27 | ZSH_POINTER='❯' 28 | ZSH_POINTER_SMALL='›' 29 | ZSH_INFO='ℹ' 30 | ZSH_WARNING='⚠' 31 | ZSH_HAMBURGER='☰' 32 | ZSH_SMILEY='㋡' 33 | ZSH_MUSTACHE='෴' 34 | ZSH_HEART='♥' 35 | ZSH_ARROW_UP='↑' 36 | ZSH_ARROW_DOWN='↓' 37 | ZSH_ARROW_LEFT='←' 38 | ZSH_ARROW_RIGHT='→' 39 | ZSH_RADIO_ON='◉' 40 | ZSH_RADIO_OFF='◯' 41 | ZSH_CHECKBOX_ON='☒' 42 | ZSH_CHECKBOX_OFF='☐' 43 | ZSH_CHECKBOX_CIRCLE_ON='ⓧ' 44 | ZSH_CHECKBOX_CIRCLE_OFF='Ⓘ' 45 | ZSH_QUESTION_MARK_PREFIX='?' 46 | ZSH_ONE_HALF='½' 47 | ZSH_ONE_THIRD='⅓' 48 | ZSH_ONE_QUARTER='¼' 49 | ZSH_ONE_FIFTH='⅕' 50 | ZSH_ONE_SIXTH='⅙' 51 | ZSH_ONE_SEVENTH='⅐' 52 | ZSH_ONE_EIGHTH='⅛' 53 | ZSH_ONE_NINTH='⅑' 54 | ZSH_ONE_TENTH='⅒' 55 | ZSH_TWO_THIRDS='⅔' 56 | ZSH_TWO_FIFTHS='⅖' 57 | ZSH_THREE_QUARTERS='¾' 58 | ZSH_THREE_FIFTHS='⅗' 59 | ZSH_THREE_EIGHTHS='⅜' 60 | ZSH_FOUR_FIFTHS='⅘' 61 | ZSH_FIVE_SIXTHS='⅚' 62 | ZSH_FIVE_EIGHTHS='⅝' 63 | ZSH_SEVEN_EIGHTHS='⅞' 64 | ``` 65 | 66 | 67 | This symbols taken from [figures](https://github.com/sindresorhus/figures), 68 | but their names changed to CONSTANT_CASE 69 | 70 | ### 🏠 [Homepage](https://github.com/zpm-zsh/figures) 71 | 72 | ## Author 73 | 74 | 👤 **Grigorii Horos** 75 | 76 | * Github: [@horosgrisa](https://github.com/horosgrisa) 77 | 78 | ## 🤝 Contributing 79 | 80 | Contributions, issues and feature requests are welcome! 81 | 82 | Feel free to check [issues page](https://github.com/zpm-zsh/figures/issues). 83 | 84 | ## Show your support 85 | 86 | Give a ⭐️ if this project helped you! 87 | 88 | 89 | *** 90 | _This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_ 91 | -------------------------------------------------------------------------------- /figures.plugin.zsh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | # Standarized $0 handling, following: 3 | # https://github.com/zdharma/Zsh-100-Commits-Club/blob/master/Zsh-Plugin-Standard.adoc 4 | 0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}" 5 | _DIRNAME="${0:h}" 6 | 7 | source "${_DIRNAME}/symbols.zsh" 8 | -------------------------------------------------------------------------------- /genSymbols.js: -------------------------------------------------------------------------------- 1 | const changeCase = require('change-case'); 2 | const figures = require('figures'); 3 | 4 | 5 | Object.entries(figures) 6 | .map(([key, value]) => { 7 | console.log(`export ZSH_${changeCase.constantCase(key)}='${value}'`); 8 | }); 9 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zsh-figures", 3 | "version": "0.0.1", 4 | "description": "", 5 | "main": "index.js", 6 | "dependencies": { 7 | "change-case": "^3.1.0", 8 | "figures": "^3.0.0" 9 | }, 10 | "devDependencies": { 11 | "eslint": "^6.1.0", 12 | "eslint-config-airbnb-base": "^13.2.0", 13 | "eslint-config-standard-jsdoc": "^9.1.1", 14 | "eslint-plugin-async-await": "0.0.0", 15 | "eslint-plugin-import": "^2.18.2", 16 | "eslint-plugin-jsdoc": "^15.5.5", 17 | "eslint-plugin-no-loops": "^0.3.0", 18 | "eslint-plugin-prefer-object-spread": "^1.2.1", 19 | "eslint-plugin-promise": "^4.2.1", 20 | "eslint-plugin-security": "^1.4.0", 21 | "eslint-plugin-simple-import-sort": "^4.0.0", 22 | "eslint-plugin-unicorn": "^9.1.1" 23 | }, 24 | "scripts": { 25 | "test": "echo \"Error: no test specified\" && exit 1" 26 | }, 27 | "author": "", 28 | "license": "ISC" 29 | } 30 | -------------------------------------------------------------------------------- /symbols.zsh: -------------------------------------------------------------------------------- 1 | export ZSH_TICK='✔' 2 | export ZSH_CROSS='✖' 3 | export ZSH_STAR='★' 4 | export ZSH_SQUARE='▇' 5 | export ZSH_SQUARE_SMALL='◻' 6 | export ZSH_SQUARE_SMALL_FILLED='◼' 7 | export ZSH_PLAY='▶' 8 | export ZSH_CIRCLE='◯' 9 | export ZSH_CIRCLE_FILLED='◉' 10 | export ZSH_CIRCLE_DOTTED='◌' 11 | export ZSH_CIRCLE_DOUBLE='◎' 12 | export ZSH_CIRCLE_CIRCLE='ⓞ' 13 | export ZSH_CIRCLE_CROSS='ⓧ' 14 | export ZSH_CIRCLE_PIPE='Ⓘ' 15 | export ZSH_CIRCLE_QUESTION_MARK='?⃝' 16 | export ZSH_BULLET='●' 17 | export ZSH_DOT='․' 18 | export ZSH_LINE='─' 19 | export ZSH_ELLIPSIS='…' 20 | export ZSH_POINTER='❯' 21 | export ZSH_POINTER_SMALL='›' 22 | export ZSH_INFO='ℹ' 23 | export ZSH_WARNING='⚠' 24 | export ZSH_HAMBURGER='☰' 25 | export ZSH_SMILEY='㋡' 26 | export ZSH_MUSTACHE='෴' 27 | export ZSH_HEART='♥' 28 | export ZSH_ARROW_UP='↑' 29 | export ZSH_ARROW_DOWN='↓' 30 | export ZSH_ARROW_LEFT='←' 31 | export ZSH_ARROW_RIGHT='→' 32 | export ZSH_RADIO_ON='◉' 33 | export ZSH_RADIO_OFF='◯' 34 | export ZSH_CHECKBOX_ON='☒' 35 | export ZSH_CHECKBOX_OFF='☐' 36 | export ZSH_CHECKBOX_CIRCLE_ON='ⓧ' 37 | export ZSH_CHECKBOX_CIRCLE_OFF='Ⓘ' 38 | export ZSH_QUESTION_MARK_PREFIX='?' 39 | export ZSH_ONE_HALF='½' 40 | export ZSH_ONE_THIRD='⅓' 41 | export ZSH_ONE_QUARTER='¼' 42 | export ZSH_ONE_FIFTH='⅕' 43 | export ZSH_ONE_SIXTH='⅙' 44 | export ZSH_ONE_SEVENTH='⅐' 45 | export ZSH_ONE_EIGHTH='⅛' 46 | export ZSH_ONE_NINTH='⅑' 47 | export ZSH_ONE_TENTH='⅒' 48 | export ZSH_TWO_THIRDS='⅔' 49 | export ZSH_TWO_FIFTHS='⅖' 50 | export ZSH_THREE_QUARTERS='¾' 51 | export ZSH_THREE_FIFTHS='⅗' 52 | export ZSH_THREE_EIGHTHS='⅜' 53 | export ZSH_FOUR_FIFTHS='⅘' 54 | export ZSH_FIVE_SIXTHS='⅚' 55 | export ZSH_FIVE_EIGHTHS='⅝' 56 | export ZSH_SEVEN_EIGHTHS='⅞' 57 | --------------------------------------------------------------------------------