Quote command

8 views
Skip to first unread message

Tatenda Biti

unread,
Jul 23, 2020, 6:14:36 AM7/23/20
to vim_use

I am trying to write the following as a term start command:

wsl -e zsh -ic ranger --choosefile=vim_ranger_current_file

In powershell this works :

wsl -e zsh -ic 'ranger --choosefile=vim_ranger_current_file'

How do I quote 'ranger --choosefile=vim_ranger_current_file'
in  term_start(a:cmd, {'hidden': 1, 'term_finish': 'close', 'cwd': getcwd()})
where a:cmd  = 'wsl -e zsh -ic ranger --choosefile=vim_ranger_current_file'

Tatenda Biti

unread,
Jul 23, 2020, 7:04:52 AM7/23/20
to vim_use
Ended up creating an alias in my zshrc
Reply all
Reply to author
Forward
0 new messages