fix(vim_askpass_helper)

This commit is contained in:
TheK4n 2023-11-10 16:43:45 +03:00
parent 3ec8c4730c
commit eb7d783ae0
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ map("c", '%%', [[getcmdtype() == ':' ? expand('%:h').'/' : '%%']], {expr = true}
-- Save from root
vim.api.nvim_create_user_command('Sw', [[execute 'silent! write !SUDO_ASKPASS=$(command -v vim_askpass_helper) sudo -A tee % >/dev/null']], {})
vim.api.nvim_create_user_command('Sw', [[execute 'silent! write !SUDO_ASKPASS=$(command -v vim_askpass_helper_python) sudo -A tee % >/dev/null']], {})

View File

@ -1,2 +1,2 @@
#!/usr/bin/env bash
echo -e "SETTITLE vim\nOPTION default-prompt=[sudo] password for $USER:\nGETPIN" | pinentry-qt --display :0 2>/dev/null | grep ^D | cut -d" " -f2-
echo -e "SETTITLE vim\nOPTION default-prompt=[sudo] password for $USER:\nGETPIN" | pinentry --display :0 2>/dev/null | grep ^D | cut -d" " -f2-