Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
constructing a zsh array from a specific tree structure
- X-seq: zsh-users 22851
- From: Filipe Silva <filipe.silva@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: constructing a zsh array from a specific tree structure
- Date: Tue, 22 Aug 2017 21:25:24 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=6DVb6dIjLU735Z6GP5/OSbEylow1+tcvlRe+kz8McdU=; b=fLtfqq/vcS8zYLNZwGbpNZsId8265g+zTU6lVN4qJbqeVXJkEhi5WfSV0wUDOdWI9U gy4iOoQW5cLlORef1de1GXe2O0Epe/uAEEIYHNjvimLb3uVWvYhve/gmQIl/QHrYSPqs A6v+pRlySpPSLh0PAcJhcsITT1Nb1uWafp54CG2Iz55V+q33jF9uaTGaE9yv66w0/zlJ k7DFVYVvPftjG/tWT3UO8GBAcnLYEeAbJxvtCAD2G032CA0D5mwA/OvviVxKqoh9xyuw X7QffCUC5M7h91qFwrFrQ0JGoAls4qVasNPT6EE0ePkGCQ4xP+jc4PCdy0+Q8HTyPTrn W5BQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
I want to construct a zsh array using a tree structure as a source. like so:
zsh $ tree -L 2
.
|-- ninrod
| |-- docker-compose-zsh-completion
| |-- docker-zsh-completion
| |-- k
| `-- zsh-bd
|-- seebi
| `-- dircolors-solarized
|-- zdharma
| `-- fast-syntax-highlighting
`-- zsh-users
|-- zsh-completions
`-- zsh-history-substring-search
12 directories, 0 files
zsh $
from this structure, I want to construct this array:
plugin_paths+=(ninrod/docker-zsh-completion)
plugin_paths+=(ninrod/docker-compose-zsh-completion)
plugin_paths+=(ninrod/zsh-bd)
plugin_paths+=(zsh-users/zsh-completions)
plugin_paths+=(zdharma/fast-syntax-highlighting)
plugin_paths+=(ninrod/k)
is there a way to do that in zsh?
thanks in advance,
Filipe Silva
Messages sorted by:
Reverse Date,
Date,
Thread,
Author