Skip to content

Commit ecb367e

Browse files
committed
feat(user file): no '-a -U'
1 parent c3769e0 commit ecb367e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ROADMAP.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ Zsh `abbr`, not the zsh port of fish `abbr`
3030
- [x] in `--add`
3131
- [x] in `--erase`
3232
- [x] in `--rename`
33-
- [ ] in user file, no `-a -U --`
33+
- [x] in user file, no `-a -U`
34+
- [ ] in user file, no `--`
3435
- [ ] `add` syntax is `abbreviation='word'`/`abbreviation="word"`
3536
- [ ] confirm that quotes can be included by escaping them (`abbreviation="the \"full\" \'word\'"`)
3637
- [ ] support importing from fish / migrating from <3.x

zsh-abbr.zsh

+2-2
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,11 @@ _zsh_abbr() {
525525
chmod 600 "$user_updated"
526526

527527
for abbreviation expansion in ${(kv)ZSH_ABBR_USER_COMMANDS}; do
528-
echo "abbr -a -U -- $abbreviation $expansion" >> "$user_updated"
528+
echo "abbr -- $abbreviation $expansion" >> "$user_updated"
529529
done
530530

531531
for abbreviation expansion in ${(kv)ZSH_ABBR_USER_GLOBALS}; do
532-
echo "abbr -a -U -g -- $abbreviation $expansion" >> "$user_updated"
532+
echo "abbr -g -- $abbreviation $expansion" >> "$user_updated"
533533
done
534534

535535
mv "$user_updated" "$ZSH_ABBR_USER_PATH"

0 commit comments

Comments
 (0)