mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-29 13:09:24 +00:00
Fix sort order bug with italics
This commit is contained in:
@ -6,7 +6,7 @@ CURRENT_THEME_NAME=$(basename "$(realpath "$CURRENT_THEME_DIR")")
|
|||||||
|
|
||||||
# Build themes list with pretty display names
|
# Build themes list with pretty display names
|
||||||
mapfile -t themes < <(
|
mapfile -t themes < <(
|
||||||
find "$THEMES_DIR" -mindepth 1 -maxdepth 1 \( -type d -o -type l \) | while read -r path; do
|
find "$THEMES_DIR" -mindepth 1 -maxdepth 1 \( -type d -o -type l \) | sort | while read -r path; do
|
||||||
filename=$(basename "$path")
|
filename=$(basename "$path")
|
||||||
display_name=$(echo "$filename" | sed -E 's/(^|-)([a-z])/\1\u\2/g; s/-/ /g')
|
display_name=$(echo "$filename" | sed -E 's/(^|-)([a-z])/\1\u\2/g; s/-/ /g')
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ mapfile -t themes < <(
|
|||||||
else
|
else
|
||||||
echo "$display_name"
|
echo "$display_name"
|
||||||
fi
|
fi
|
||||||
done | sort
|
done
|
||||||
)
|
)
|
||||||
|
|
||||||
# Show Walker menu
|
# Show Walker menu
|
||||||
|
Reference in New Issue
Block a user