Avoid using fancy assignment syntax after 'local' so that dots works in zsh < 5.1

This commit is contained in:
Danielle McLean 2016-10-08 00:43:17 +11:00
parent 7d9ec3583f
commit 1e0267ba57
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -37,7 +37,8 @@ clone-one() {
}
link() {
local packages=($argv)
local -a packages
packages=($argv)
if (( $#packages == 0 )); then
packages=( $DOTFILES/*(N:t) )
if (( $#packages == 0 )); then
@ -65,7 +66,8 @@ process-stow-no-fold() {
}
status() {
local packages=($argv)
local -a packages
packages=($argv)
(( $#packages == 0 )) && packages=( $DOTFILES/*(N:t) )
local length=${#${(O@)packages//?/X}[1]}
cd $DOTFILES