mattmc3/antidote

.zsh_plugins.txt parser treats newline literally

Closed this issue · 0 comments

#~/.zsh_plugins.txt
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-completions
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search
#antidote list
https://github.com/zsh-users/zsh-autosuggestions                 /home/user/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions
https://github.com/zsh-users/zsh-autosuggestions                 /home/user/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions
https://github.com/zsh-users/zsh-completions                     /home/user/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-completions
https://github.com/zsh-users/zsh-completions                     /home/user/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-completions
https://github.com/zsh-users/zsh-history-substring-search        /home/user/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-history-substring-search
https://github.com/zsh-users/zsh-syntax-highlighting             /home/user/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-syntax-highlighting
https://github.com/zsh-users/zsh-syntax-highlighting             /home/user/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-syntax-highlighting
# ll ~/.cache/antidote/
https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions
https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions\r
https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-completions
https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-completions\r
https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-history-substring-search
https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-syntax-highlighting\r
https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-syntax-highlighting

With every plugin name in .zsh_plugins.txt with newline it creates 2 directories in cache - one with literal newline, one without.

zsh 5.9 (x86_64-pc-linux-gnu)
GNU Awk 5.2.1, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.2.0, GNU MP 6.2.1)
Arch Linux