diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2020-03-21 17:55:50 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2020-03-21 18:06:04 +0900 |
| commit | b9256a9942a80336047db99ae1178385bb08d94a (patch) | |
| tree | d33d083f9ebc24aea1a0a8242972db048fd28681 /src/_node | |
| parent | Merge pull request #676 from pseyfert/cmake_unity (diff) | |
| download | zsh-completions-b9256a9942a80336047db99ae1178385bb08d94a.tar zsh-completions-b9256a9942a80336047db99ae1178385bb08d94a.tar.gz zsh-completions-b9256a9942a80336047db99ae1178385bb08d94a.tar.bz2 zsh-completions-b9256a9942a80336047db99ae1178385bb08d94a.tar.lz zsh-completions-b9256a9942a80336047db99ae1178385bb08d94a.tar.xz zsh-completions-b9256a9942a80336047db99ae1178385bb08d94a.tar.zst zsh-completions-b9256a9942a80336047db99ae1178385bb08d94a.zip | |
Complete only .log file if --prof-process is specified
Fixes: https://github.com/zsh-users/zsh-completions/issues/633
Diffstat (limited to 'src/_node')
| -rw-r--r-- | src/_node | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -37,10 +37,18 @@ # * Mario Fernandez (https://github.com/sirech) # * Nicholas Penree (https://github.com/drudge) # * Masafumi Koba (https://github.com/ybiquitous) +# * Shohei YOSHIDA (https://github.com/syohex) # # ------------------------------------------------------------------------------ _node_files() { + for (( i = 2; i < CURRENT; i++)); do + if [[ ${words[i]} == "--prof-process" ]]; then + _files -g "*.log" + return + fi + done + _files -g "*.(js|mjs)" } |
