skywind3000 / asynctasks.vim

:rocket: Modern Task System for Project Building, Testing and Deploying !!
https://www.vim.org/scripts/script.php?script_id=5853
MIT License
915 stars 30 forks source link

命令中有大括号的参数不生效 #108

Closed fortystory closed 1 year ago

fortystory commented 1 year ago
[rsync-cmd]
command=rsync -zva /source/path/ user@host:/target/path --exclude={'.idea/','.git/','cache/'}

这类带有{}的配置不生效

[rsync-cmd]
command=rsync -zva /source/path/ user@host:/target/path --exclude=.idea/ --exclude=.git/ --exclude=cache

拆开才能生效

skywind3000 commented 1 year ago

这个命令太复杂了,写成个 shell script 用 asynctasks 调用吧。 或者改成这样试试:

command=rsync -zva /source/path/ user@host:/target/path '--exclude={".idea/",".git/","cache/"}'