Unicode Symbols

work in progress

A personal selection.

Symbol Shortcut Comment
cmd
tab
tick
check
☐ ☑ ☒ checkboxes
★ ⭑ ☆ ⭒ stars
interro
hellip
mdash
ndash
infinity
° deg
bullet
Δ delta
warn
larr
rarr
rArr
harr
tm
© c
approx
correspond
mequal
nequal
× multi
± plusminus
¼ ½ ¾ fract
¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁰ sup
¹ sup1
² sup2
³ sup3
₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ sub
eur
“”‘’«» quot
tomb Tombstone (typography)
power power symbols
¯\_(ツ)_/¯ shrug
(╯°□°)╯︵ ┻━┻ flip

shell script
#!/usr/bin/env bash

set -eu

clipboard=""
if [ "${1:-""}" = "-c" ]; then
    clipboard=true
    shift
fi
symbol=${1:-""}

function emit {
    symbol=${1:?}

    if [ -z "$clipboard" ]; then
        echo "$symbol"
    else
        echo -n "$symbol" | pbcopy
    fi
}

case $symbol in
    cmd)
        emit "⌘"
        ;;
    tab)
        emit "↹"
        ;;
    tick)
        emit "✓"
        ;;
    check)
        emit "✗"
        ;;
    checkboxes)
        emit "☐ ☑ ☒"
        ;;
    stars)
        emit "★ ⭑ ☆ ⭒"
        ;;
    interro)
        emit "‽"
        ;;
    hellip)
        emit "…"
        ;;
    mdash)
        emit "—"
        ;;
    ndash)
        emit "–"
        ;;
    infinity)
        emit "∞"
        ;;
    deg)
        emit "°"
        ;;
    bullet)
        emit "•"
        ;;
    delta)
        emit "Δ"
        ;;
    warn)
        emit "⚠"
        ;;
    larr)
        emit "←"
        ;;
    rarr)
        emit "→"
        ;;
    rArr)
        emit "⇒"
        ;;
    harr)
        emit "↔"
        ;;
    tm)
        emit "™"
        ;;
    c)
        emit "©"
        ;;
    approx)
        emit "≈"
        ;;
    correspond)
        emit "≙"
        ;;
    mequal)
        emit "≟"
        ;;
    nequal)
        emit "≠"
        ;;
    multi)
        emit "×"
        ;;
    plusminus)
        emit "±"
        ;;
    fract)
        emit "¼ ½ ¾"
        ;;
    sup)
        emit "¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁰"
        ;;
    sup1)
        emit "¹"
        ;;
    sup2)
        emit "²"
        ;;
    sup3)
        emit "³"
        ;;
    sub)
        emit "₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉"
        ;;
    eur)
        emit "€"
        ;;
    quot)
        emit "“”‘’"
        ;;
    tomb)
        emit "∎"
        ;;
    power)
        emit "⏻"
        ;;
    shrug)
        emit '¯\_(ツ)_/¯'
        ;;
    flip)
        emit "(╯°□°)╯︵ ┻━┻"
        ;;
    *)
        echo "invalid symbol" >&2
        exit 1
        ;;
esac