Avoid using fancy assignment syntax after 'local' so that dots works in zsh < 5.1
This commit is contained in:
parent
7d9ec3583f
commit
1e0267ba57
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue