Skip to content

Commit

Permalink
feat(storage): globals are at top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Mar 1, 2020
1 parent 44b8281 commit 79a920b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zsh-abbr.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -535,16 +535,16 @@ _zsh_abbr() {
touch "$user_updated"
chmod 600 "$user_updated"

typeset -p ZSH_ABBR_USER_COMMANDS > "${TMPDIR:-/tmp}/zsh-user-abbreviations"
for abbreviation expansion in ${(kv)ZSH_ABBR_USER_COMMANDS}; do
echo "abbr ${abbreviation}=\"$expansion\"" >> "$user_updated"
done

typeset -p ZSH_ABBR_USER_GLOBALS > "${TMPDIR:-/tmp}/zsh-user-global-abbreviations"
for abbreviation expansion in ${(kv)ZSH_ABBR_USER_GLOBALS}; do
echo "abbr -g ${abbreviation}=\"$expansion\"" >> "$user_updated"
done

typeset -p ZSH_ABBR_USER_COMMANDS > "${TMPDIR:-/tmp}/zsh-user-abbreviations"
for abbreviation expansion in ${(kv)ZSH_ABBR_USER_COMMANDS}; do
echo "abbr ${abbreviation}=\"$expansion\"" >> "$user_updated"
done

mv "$user_updated" "$ZSH_ABBR_USER_PATH"
}

Expand Down

0 comments on commit 79a920b

Please sign in to comment.