Skip to content

Commit 59ba9ce

Browse files
committed
refactor(zsh): use alternate form of for loop
1 parent b9b400c commit 59ba9ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

home/dot_config/exact_zsh/exact_config/aliases.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ typeset -A git_aliases=(
4444
)
4545

4646
# Loop through each alias, create the alias, and set the compdef.
47-
for key in ${(k)git_aliases}; do
47+
for key (${(k)git_aliases}) {
4848
alias g$key="git $key"
4949
compdef _git "g$key=git-${git_aliases[$key]}"
50-
done
50+
}
5151
unset git_aliases
5252
unset key
5353

0 commit comments

Comments
 (0)