Quote command

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Quote command

Tatenda Biti

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'

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7d8f6815-8ea9-412f-a09b-45e0878937a6n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Quote command

Tatenda Biti
Ended up creating an alias in my zshrc

On Thursday, July 23, 2020 at 6:14:36 AM UTC-4 Tatenda Biti wrote:

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'

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5a47ca76-0a4d-4794-827e-147a73f7fe77n%40googlegroups.com.