olets / zsh-abbr

The zsh manager for auto-expanding abbreviations, inspired by fish. ~18,000 clones by ~12,000 unique cloners as of Sept '24, and averaging ~60 Homebrew installs monthly since June 2023
https://zsh-abbr.olets.dev
Other
554 stars 19 forks source link

False-positive initialization errors possible when opening multiple sessions simultaneously #8

Closed olets closed 4 years ago

olets commented 4 years ago

When multiple sessions are initializing at the same time, it's possible for the initializations to collide. Common symptoms are one terminal giving the error

util_add:source:45: no such file or directory: …/zsh-user-global-abbreviations

and another terminal giving for each user abbreviation the warning

abbr add: A matching abbreviation … already exists

These are false positives: in my testing, all sessions do end up with all the user abbreviations available.

Until this is addressed, users can work around it by letting one session load before opening another.

olets commented 4 years ago

Fixed in 3.0.1. Still theoretically possible, but I have successfully opened ten sessions "simultaneously" (iTerm, cmdd ten times in rapid succession)