Skip to content

Commit

Permalink
Add option to disable numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
destag committed Jun 5, 2024
1 parent 2bc27a9 commit 6996843
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/custom-number.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ format_sub="₀₁₂₃₄₅₆₇₈₉"
ID=$1
FORMAT=${2:-none}

if [ "$FORMAT" = "disable" ]; then
exit 0
fi

# Preserve leading whitespace for bash
format="$(eval echo \"\$format_${FORMAT}\")"
if [ -z "$format" ]; then
Expand Down

0 comments on commit 6996843

Please sign in to comment.